From 8735e5addda74882da66deab8cf038be1fb3ed3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 4 May 2015 17:44:46 +0300 Subject: [PATCH] p2p: increase the handshake timeout in the tests --- p2p/server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/server_test.go b/p2p/server_test.go index 85a5a98cd5..a5e56fa186 100644 --- a/p2p/server_test.go +++ b/p2p/server_test.go @@ -480,7 +480,7 @@ func TestServerMaxPendingAccepts(t *testing.T) { case <-started: t.Fatalf("handshake on second connection accepted") - case <-time.After(100 * time.Millisecond): + case <-time.After(time.Second): } // Shake on first, check that both go through go func() { @@ -493,7 +493,7 @@ func TestServerMaxPendingAccepts(t *testing.T) { for i := 0; i < 2; i++ { select { case <-started: - case <-time.After(100 * time.Millisecond): + case <-time.After(time.Second): t.Fatalf("peer %d: handshake timeout", i) } }