From 42dd6b643b71f5851d9342bfff1485a56c85588a Mon Sep 17 00:00:00 2001 From: Christian Groschupp Date: Thu, 10 Aug 2023 17:37:46 +0200 Subject: [PATCH] fix test --- internal/ingress/annotations/annotations_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/ingress/annotations/annotations_test.go b/internal/ingress/annotations/annotations_test.go index f6b09be0e..5df3cdc0e 100644 --- a/internal/ingress/annotations/annotations_test.go +++ b/internal/ingress/annotations/annotations_test.go @@ -345,7 +345,11 @@ func TestCustomResponseHeaders(t *testing.T) { for _, foo := range fooAnns { ing.SetAnnotations(foo.annotations) - r := ec.Extract(ing).CustomHeaders.Headers + rann, err := ec.Extract(ing) + if err != nil { + t.Errorf("error should be null: %v", err) + } + r := rann.CustomHeaders.Headers // Check that expected headers were created for i := range foo.headers {