reduce time spent on kcp test

pull/314/head
Darien Raymond 8 years ago
parent 1b765c66da
commit 5ffabe1148
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -92,7 +92,9 @@ func TestDialAndListen(t *testing.T) {
} }
wg.Wait() 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) assert.Int(listerner.ActiveConnections()).Equals(0)
listerner.Close() listerner.Close()

Loading…
Cancel
Save