Skip to content

Commit

Permalink
fix TestRetry nil pointer panic
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed Apr 10, 2024
1 parent a3d8b0f commit 984a3e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/conformance/ingress/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 984a3e0

Please sign in to comment.