From 96066d320f6c2a6a363a41a55290c3fec3549cf6 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 23 Apr 2020 17:20:08 +0300 Subject: [PATCH] increase delay for TestPeerDisconnect 10ms don't seem to be enough for travis --- floodsub_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/floodsub_test.go b/floodsub_test.go index 0719ebb..69614f5 100644 --- a/floodsub_test.go +++ b/floodsub_test.go @@ -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)