Merge pull request #4128 from AllenX2018/fix-ci-fail

fix CI fail for connection log test
This commit is contained in:
Ming Deng 2020-08-04 21:14:45 +08:00 committed by GitHub
commit 787bb60b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import (
"net"
"os"
"testing"
"time"
)
// ConnTCPListener takes a TCP listener and accepts n TCP connections
@ -73,7 +74,7 @@ func TestReconnect(t *testing.T) {
select {
case second := <-newConns:
second.Close()
default:
case <-time.After(5 * time.Second):
t.Error("Did not reconnect")
}
}