From 855c106e9b92f94eb3f2a9d804f81d7b57e092ae Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Tue, 12 Jan 2021 22:19:19 -0500 Subject: [PATCH] Reduce ping timeout during test --- client/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client_test.go b/client/client_test.go index 75632063..d05705ac 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -29,7 +29,7 @@ func TestGetHTTPClient(t *testing.T) { } func TestPing(t *testing.T) { - pingTimeout = time.Second + pingTimeout = 500 * time.Millisecond if success, rtt := Ping("127.0.0.1"); !success { t.Error("expected true") if rtt == 0 {