mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-21 16:16:27 -04:00
Better progress reporting in network stress test shutdown
This commit is contained in:
parent
663cd82432
commit
0e9bcff2c8
@ -246,11 +246,10 @@ public class NetworkStressTest {
|
||||
|
||||
@After
|
||||
public void tearDown() throws InterruptedException, IOException {
|
||||
print("stopping all local nodes");
|
||||
|
||||
/** A barrier to wait for concurrent shutdown of services. */
|
||||
final CountDownLatch shutdownLatch = new CountDownLatch((seedNode != null? 1 : 0) + peerNodes.size());
|
||||
|
||||
print("stopping all local nodes");
|
||||
// Stop peer nodes.
|
||||
for (P2PService peer : peerNodes) {
|
||||
peer.shutDown(() -> countDownAndPrint(shutdownLatch, '.'));
|
||||
@ -264,6 +263,7 @@ public class NetworkStressTest {
|
||||
print("all local nodes stopped");
|
||||
|
||||
// Cleanup test data directory.
|
||||
print("cleaning up test data directory");
|
||||
if (testDataDir != null) {
|
||||
deleteTestDataDirectory();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user