Skip to content

Commit

Permalink
quic: adjust timeout for reuse garbage collector detection in tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored May 16, 2022
1 parent 1d64bc1 commit a66dd00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/transport/quic/reuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func cleanup(t *testing.T, reuse *reuse) {

func TestReuseListenOnAllIPv4(t *testing.T) {
reuse := newReuse()
require.Eventually(t, isGarbageCollectorRunning, 100*time.Millisecond, time.Millisecond, "expected garbage collector to be running")
require.Eventually(t, isGarbageCollectorRunning, 500*time.Millisecond, 50*time.Millisecond, "expected garbage collector to be running")
cleanup(t, reuse)

addr, err := net.ResolveUDPAddr("udp4", "0.0.0.0:0")
Expand All @@ -68,7 +68,7 @@ func TestReuseListenOnAllIPv4(t *testing.T) {

func TestReuseListenOnAllIPv6(t *testing.T) {
reuse := newReuse()
require.Eventually(t, isGarbageCollectorRunning, 100*time.Millisecond, time.Millisecond, "expected garbage collector to be running")
require.Eventually(t, isGarbageCollectorRunning, 500*time.Millisecond, 50*time.Millisecond, "expected garbage collector to be running")
cleanup(t, reuse)

addr, err := net.ResolveUDPAddr("udp6", "[::]:1234")
Expand Down

0 comments on commit a66dd00

Please sign in to comment.