Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed May 18, 2022
1 parent 928bc0c commit 1b61f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/net/swarm/dial_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
}
Expand Down

0 comments on commit 1b61f0e

Please sign in to comment.