From 9fa086e47175d5ed45c0c2b969ee2e47dd937510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 25 May 2022 20:34:37 -0700 Subject: [PATCH] Fix flaky test --- http/client/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/client/client_test.go b/http/client/client_test.go index c95ebe9c..618345cf 100644 --- a/http/client/client_test.go +++ b/http/client/client_test.go @@ -19,7 +19,7 @@ func TestClientWithDelay(t *testing.T) { func TestClientWithError(t *testing.T) { clt := New("http://httpbin.org/status/502") - clt.ClientTimeout = 1 + clt.ClientTimeout = 5 response, err := clt.Get() if err != nil { t.Fatal(err) @@ -30,7 +30,7 @@ func TestClientWithError(t *testing.T) { } if !response.HasServerFailure() { - t.Fatal(`A 500 error is considered as server failure`) + t.Fatal(`A 502 error is considered as server failure`) } }