mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-22 00:19:10 -04:00
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:
parent
9e61f1f3db
commit
d9f00e6627
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user