mirror of
https://github.com/astaxie/beego.git
synced 2024-11-24 15:10:54 +00:00
fix CI fail for connection log test
This commit is contained in:
parent
ebc0207909
commit
12b984861d
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user