mirror of
https://github.com/astaxie/beego.git
synced 2024-12-24 17:00:49 +00:00
Merge pull request #4129 from astaxie/revert-4128-fix-ci-fail
Revert "fix CI fail for connection log test"
This commit is contained in:
commit
3dc5ec1060
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user