Răsfoiți Sursa

Fix flaky test

Frédéric Guillot 4 ani în urmă
părinte
comite
9fa086e471
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      http/client/client_test.go

+ 2 - 2
http/client/client_test.go

@@ -19,7 +19,7 @@ func TestClientWithDelay(t *testing.T) {
 
 
 func TestClientWithError(t *testing.T) {
 func TestClientWithError(t *testing.T) {
 	clt := New("http://httpbin.org/status/502")
 	clt := New("http://httpbin.org/status/502")
-	clt.ClientTimeout = 1
+	clt.ClientTimeout = 5
 	response, err := clt.Get()
 	response, err := clt.Get()
 	if err != nil {
 	if err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
@@ -30,7 +30,7 @@ func TestClientWithError(t *testing.T) {
 	}
 	}
 
 
 	if !response.HasServerFailure() {
 	if !response.HasServerFailure() {
-		t.Fatal(`A 500 error is considered as server failure`)
+		t.Fatal(`A 502 error is considered as server failure`)
 	}
 	}
 }
 }