mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 22:10:54 +00:00
Revert "fix CI fail for connection log test"
This commit is contained in:
parent
787bb60b42
commit
1961c1e441
@ -18,7 +18,6 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConnTCPListener takes a TCP listener and accepts n TCP connections
|
// ConnTCPListener takes a TCP listener and accepts n TCP connections
|
||||||
@ -74,7 +73,7 @@ func TestReconnect(t *testing.T) {
|
|||||||
select {
|
select {
|
||||||
case second := <-newConns:
|
case second := <-newConns:
|
||||||
second.Close()
|
second.Close()
|
||||||
case <-time.After(5 * time.Second):
|
default:
|
||||||
t.Error("Did not reconnect")
|
t.Error("Did not reconnect")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user