diff --git a/eth/handler_test.go b/eth/handler_test.go index 5914f4c64344879cad64d900590f504717f93ef2..e5449c3420d9882401b27a89468b4e52d280cc1c 100644 --- a/eth/handler_test.go +++ b/eth/handler_test.go @@ -615,7 +615,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) { case <-doneCh: received++ - case <-time.After(100 * time.Millisecond): + case <-time.After(time.Second): if received != broadcastExpected { t.Errorf("broadcast count mismatch: have %d, want %d", received, broadcastExpected) } diff --git a/les/peer_test.go b/les/peer_test.go index 59a2ad700954fa20d7bcf81607f6ed0deacff8f2..8309e3557edeab5854c03e7272cb209b05f22713 100644 --- a/les/peer_test.go +++ b/les/peer_test.go @@ -140,7 +140,7 @@ func TestHandshake(t *testing.T) { if err != nil { t.Fatalf("handshake failed, %v", err) } - case <-time.NewTimer(100 * time.Millisecond).C: + case <-time.After(time.Second): t.Fatalf("timeout") } }