From 00ba6a165ae63cf6710dade02a805398f435289b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 8 Nov 2018 10:49:57 -0800 Subject: [PATCH] deflake identify test This was probably failing (rarely) due to the fact that we're shrinking the timeout asynchronously (I think?). --- p2p/protocol/identify/id_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/protocol/identify/id_test.go b/p2p/protocol/identify/id_test.go index 2c9b279f..621ce1aa 100644 --- a/p2p/protocol/identify/id_test.go +++ b/p2p/protocol/identify/id_test.go @@ -88,7 +88,7 @@ func subtestIDService(t *testing.T) { // Forget the first one. testKnowsAddrs(t, h2, h1p, addrs[:len(addrs)-1]) - time.Sleep(500 * time.Millisecond) + time.Sleep(1 * time.Second) // Forget the rest. testKnowsAddrs(t, h1, h2p, []ma.Multiaddr{})