diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-04 22:44:46 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-07 20:30:56 +0800 |
commit | 8735e5addda74882da66deab8cf038be1fb3ed3f (patch) | |
tree | 542a0633a8b03446164662d4f78ed2082a97b651 /p2p | |
parent | 4d5a719f256d7dfbaab2cc9c632cd7996067508f (diff) | |
download | go-tangerine-8735e5addda74882da66deab8cf038be1fb3ed3f.tar.gz go-tangerine-8735e5addda74882da66deab8cf038be1fb3ed3f.tar.zst go-tangerine-8735e5addda74882da66deab8cf038be1fb3ed3f.zip |
p2p: increase the handshake timeout in the tests
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/server_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/server_test.go b/p2p/server_test.go index 85a5a98cd..a5e56fa18 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) } } |