Skip to content

Commit

Permalink
p2p: TestUDPv4_LookupIterator failures workaround (#4079)
Browse files Browse the repository at this point in the history
--- FAIL: TestUDPv4_LookupIterator (1.36s)
155
    v4_lookup_test.go:168: handlePacket error: "unsolicited reply"
156
  • Loading branch information
battlmonstr authored May 5, 2022
1 parent 7744191 commit a5683fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/discover/v4_lookup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestUDPv4_Lookup(t *testing.T) {
t.Parallel()

ctx := context.Background()
ctx = contextWithReplyTimeout(ctx, 100*time.Millisecond)
ctx = contextWithReplyTimeout(ctx, 200*time.Millisecond)

test := newUDPTestContext(ctx, t)
defer test.close()
Expand Down Expand Up @@ -84,7 +84,7 @@ func TestUDPv4_LookupIterator(t *testing.T) {
return testNetPrivateKeys[testNetPrivateKeyIndex], nil
}
ctx := context.Background()
ctx = contextWithReplyTimeout(ctx, 100*time.Millisecond)
ctx = contextWithReplyTimeout(ctx, 200*time.Millisecond)
ctx = contextWithPrivateKeyGenerator(ctx, privateKeyGenerator)

test := newUDPTestContext(ctx, t)
Expand Down

0 comments on commit a5683fe

Please sign in to comment.