Wait longer for direct receive in network stress test

Using the new executor made thing a little slower.
This commit is contained in:
Ivan Vilata-i-Balaguer 2016-05-11 20:57:48 +02:00
parent 84035ae658
commit ac3dbe9160

View File

@ -310,7 +310,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, 10 * idealMaxDirectDelay, TimeUnit.MILLISECONDS);
receivedDirectLatch, 25 * idealMaxDirectDelay, TimeUnit.MILLISECONDS);
final long recvMillis = System.currentTimeMillis() - sendStartMillis;
print("receiving %d direct messages per peer took %ss (%.2f x ideal max)",
directCount, recvMillis / 1000.0, recvMillis / (float) idealMaxDirectDelay);