From 984a3e0706c96b5cbc454317d28a6c10a711a058 Mon Sep 17 00:00:00 2001 From: dprotaso Date: Wed, 10 Apr 2024 18:28:47 -0400 Subject: [PATCH] fix TestRetry nil pointer panic --- test/conformance/ingress/retry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/conformance/ingress/retry.go b/test/conformance/ingress/retry.go index c3ec7526c..b9d715e0d 100644 --- a/test/conformance/ingress/retry.go +++ b/test/conformance/ingress/retry.go @@ -56,7 +56,7 @@ func TestRetry(t *testing.T) { // automatically and the service only responds 200 on the _second_ access. resp, err := client.Get("http://" + domain) if err != nil { - t.Errorf("Error making GET request: %v", err) + t.Fatalf("Error making GET request: %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusServiceUnavailable { @@ -67,7 +67,7 @@ func TestRetry(t *testing.T) { // Second try - this time we should succeed. resp, err = client.Get("http://" + domain) if err != nil { - t.Errorf("Error making GET request: %v", err) + t.Fatalf("Error making GET request: %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK {