mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-20 07:46:05 -04:00
Minor changes to network stress test
I was going to override the ``runBare()`` method to cleanup on ``setUp()`` failures, but ``tearDown()`` is called all the same.
This commit is contained in:
parent
260840a9b2
commit
9c58d9f740
@ -25,7 +25,7 @@ public class NetworkStressTest {
|
||||
private SeedNode seedNode;
|
||||
|
||||
@Before
|
||||
public void setup() throws IOException, InterruptedException {
|
||||
public void setUp() throws IOException, InterruptedException {
|
||||
/** A barrier to wait for concurrent tasks. */
|
||||
final CountDownLatch pendingTasks = new CountDownLatch(1 /*seed node*/);
|
||||
|
||||
@ -87,6 +87,7 @@ public class NetworkStressTest {
|
||||
public void tearDown() throws InterruptedException, IOException {
|
||||
/** A barrier to wait for concurrent tasks. */
|
||||
final CountDownLatch pendingTasks = new CountDownLatch(seedNode != null? 1 : 0);
|
||||
|
||||
// Stop the seed node.
|
||||
if (seedNode != null) {
|
||||
seedNode.shutDown(pendingTasks::countDown);
|
||||
|
Loading…
x
Reference in New Issue
Block a user