mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-20 12:39:12 -04:00
reduce time spent on kcp test
This commit is contained in:
@@ -92,7 +92,9 @@ func TestDialAndListen(t *testing.T) {
|
||||
}
|
||||
|
||||
wg.Wait()
|
||||
time.Sleep(20 * time.Second)
|
||||
for i := 0; i < 60 && listerner.ActiveConnections() > 0; i++ {
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
}
|
||||
assert.Int(listerner.ActiveConnections()).Equals(0)
|
||||
|
||||
listerner.Close()
|
||||
|
||||
Reference in New Issue
Block a user