Wait 2 seconds per peer for preliminary data and bootstrap

This commit is contained in:
Ivan Vilata-i-Balaguer 2016-05-11 18:34:51 +02:00
parent c4bb180dbf
commit fa461f23e8

View File

@ -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");
}