Wait more for message reception in network stress test

If we wait for too little there are lots of connection refused errors when stopping nodes.
This commit is contained in:
Ivan Vilata-i-Balaguer 2016-05-09 10:10:52 +02:00
parent 9e61f1f3db
commit d9f00e6627

View File

@ -269,7 +269,7 @@ public class NetworkStressTest {
final long idealMaxDirectDelay = MAX_DIRECT_DELAY_MILLIS * directCount;
// Wait for peers to complete receiving. We are generous here.
assertLatch("timed out while receiving direct messages",
receivedDirectLatch, 2 * idealMaxDirectDelay, TimeUnit.MILLISECONDS);
receivedDirectLatch, 10 * idealMaxDirectDelay, TimeUnit.MILLISECONDS);
print("receiving %d direct messages per peer took %ss", directCount,
(System.currentTimeMillis() - sendStartMillis)/1000.0);
// Wait for peers to complete sending.