increase delay for TestPeerDisconnect

10ms don't seem to be enough for travis
This commit is contained in:
vyzo 2020-04-23 17:20:08 +03:00
parent 8d89949131
commit 96066d320f
1 changed files with 2 additions and 2 deletions

View File

@ -688,7 +688,7 @@ func TestPeerDisconnect(t *testing.T) {
t.Fatal(err)
}
time.Sleep(time.Millisecond * 10)
time.Sleep(time.Millisecond * 300)
peers := psubs[0].ListPeers("foo")
assertPeerList(t, peers, hosts[1].ID())
@ -696,7 +696,7 @@ func TestPeerDisconnect(t *testing.T) {
c.Close()
}
time.Sleep(time.Millisecond * 100)
time.Sleep(time.Millisecond * 300)
peers = psubs[0].ListPeers("foo")
assertPeerList(t, peers)