increase delay for TestPeerDisconnect
10ms don't seem to be enough for travis
This commit is contained in:
parent
8d89949131
commit
96066d320f
|
@ -688,7 +688,7 @@ func TestPeerDisconnect(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(time.Millisecond * 10)
|
time.Sleep(time.Millisecond * 300)
|
||||||
|
|
||||||
peers := psubs[0].ListPeers("foo")
|
peers := psubs[0].ListPeers("foo")
|
||||||
assertPeerList(t, peers, hosts[1].ID())
|
assertPeerList(t, peers, hosts[1].ID())
|
||||||
|
@ -696,7 +696,7 @@ func TestPeerDisconnect(t *testing.T) {
|
||||||
c.Close()
|
c.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(time.Millisecond * 100)
|
time.Sleep(time.Millisecond * 300)
|
||||||
|
|
||||||
peers = psubs[0].ListPeers("foo")
|
peers = psubs[0].ListPeers("foo")
|
||||||
assertPeerList(t, peers)
|
assertPeerList(t, peers)
|
||||||
|
|
Loading…
Reference in New Issue