Skip to content

Commit 8735e5a

Browse files
committed
p2p: increase the handshake timeout in the tests
1 parent 4d5a719 commit 8735e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p2p/server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func TestServerMaxPendingAccepts(t *testing.T) {
480480
case <-started:
481481
t.Fatalf("handshake on second connection accepted")
482482

483-
case <-time.After(100 * time.Millisecond):
483+
case <-time.After(time.Second):
484484
}
485485
// Shake on first, check that both go through
486486
go func() {
@@ -493,7 +493,7 @@ func TestServerMaxPendingAccepts(t *testing.T) {
493493
for i := 0; i < 2; i++ {
494494
select {
495495
case <-started:
496-
case <-time.After(100 * time.Millisecond):
496+
case <-time.After(time.Second):
497497
t.Fatalf("peer %d: handshake timeout", i)
498498
}
499499
}

0 commit comments

Comments
 (0)