From fa461f23e8f116a8950a755b63b41283851e06cc Mon Sep 17 00:00:00 2001 From: Ivan Vilata-i-Balaguer Date: Wed, 11 May 2016 18:34:51 +0200 Subject: [PATCH] Wait 2 seconds per peer for preliminary data and bootstrap --- .../test/java/io/bitsquare/p2p/network/NetworkStressTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java b/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java index d22397e098..280d1957c5 100644 --- a/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java +++ b/network/src/test/java/io/bitsquare/p2p/network/NetworkStressTest.java @@ -180,12 +180,12 @@ public class NetworkStressTest { // Wait for peers to get their preliminary data. assertLatch("timed out while waiting for preliminary data", - prelimDataLatch, 30, TimeUnit.SECONDS); + prelimDataLatch, 2 * nPeers, TimeUnit.SECONDS); print("preliminary data received"); // Wait for peers to complete their bootstrapping. assertLatch("timed out while waiting for bootstrap", - bootstrapLatch, 30, TimeUnit.SECONDS); + bootstrapLatch, 2 * nPeers, TimeUnit.SECONDS); print("bootstrap complete"); }