From 1961c1e4413b7aeb436b3fb276d2e1707c647282 Mon Sep 17 00:00:00 2001 From: Ming Deng Date: Tue, 4 Aug 2020 21:37:46 +0800 Subject: [PATCH] Revert "fix CI fail for connection log test" --- logs/conn_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/logs/conn_test.go b/logs/conn_test.go index 32f96302..bb377d41 100644 --- a/logs/conn_test.go +++ b/logs/conn_test.go @@ -18,7 +18,6 @@ import ( "net" "os" "testing" - "time" ) // ConnTCPListener takes a TCP listener and accepts n TCP connections @@ -74,7 +73,7 @@ func TestReconnect(t *testing.T) { select { case second := <-newConns: second.Close() - case <-time.After(5 * time.Second): + default: t.Error("Did not reconnect") } }