diff --git a/p2p/net/swarm/dial_sync_test.go b/p2p/net/swarm/dial_sync_test.go index 8aa2def035..4034b94c76 100644 --- a/p2p/net/swarm/dial_sync_test.go +++ b/p2p/net/swarm/dial_sync_test.go @@ -65,11 +65,11 @@ func TestBasicDialSync(t *testing.T) { }() // wait until both requests are registered - require.Eventually(t, func() bool { return len(requests) == 2 }, 100*time.Millisecond, 5*time.Millisecond, "expected both requests to be processed") + require.Eventually(t, func() bool { return len(requests) == 2 }, 1000*time.Millisecond, 5*time.Millisecond, "expected both requests to be processed") // make the dials return close(done) // make sure the Dial functions return - require.Eventually(t, func() bool { return len(finished) == 2 }, 100*time.Millisecond, 5*time.Millisecond, "dial functions should have returned") + require.Eventually(t, func() bool { return len(finished) == 2 }, 1000*time.Millisecond, 5*time.Millisecond, "dial functions should have returned") require.Equal(t, 1, int(atomic.LoadInt32(&counter)), "should only have called dial func once!") }