Commit 8735e5ad authored by Péter Szilágyi's avatar Péter Szilágyi

p2p: increase the handshake timeout in the tests

parent 4d5a719f
...@@ -480,7 +480,7 @@ func TestServerMaxPendingAccepts(t *testing.T) { ...@@ -480,7 +480,7 @@ func TestServerMaxPendingAccepts(t *testing.T) {
case <-started: case <-started:
t.Fatalf("handshake on second connection accepted") 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 // Shake on first, check that both go through
go func() { go func() {
...@@ -493,7 +493,7 @@ func TestServerMaxPendingAccepts(t *testing.T) { ...@@ -493,7 +493,7 @@ func TestServerMaxPendingAccepts(t *testing.T) {
for i := 0; i < 2; i++ { for i := 0; i < 2; i++ {
select { select {
case <-started: case <-started:
case <-time.After(100 * time.Millisecond): case <-time.After(time.Second):
t.Fatalf("peer %d: handshake timeout", i) t.Fatalf("peer %d: handshake timeout", i)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment