mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-31 18:58:51 -04:00
Do not wait on seed node if not created in network stress test
This commit is contained in:
parent
718c935fef
commit
260840a9b2
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ public class NetworkStressTest {
|
||||||
@After
|
@After
|
||||||
public void tearDown() throws InterruptedException, IOException {
|
public void tearDown() throws InterruptedException, IOException {
|
||||||
/** A barrier to wait for concurrent tasks. */
|
/** A barrier to wait for concurrent tasks. */
|
||||||
final CountDownLatch pendingTasks = new CountDownLatch(1 /*seed node*/);
|
final CountDownLatch pendingTasks = new CountDownLatch(seedNode != null? 1 : 0);
|
||||||
// Stop the seed node.
|
// Stop the seed node.
|
||||||
if (seedNode != null) {
|
if (seedNode != null) {
|
||||||
seedNode.shutDown(pendingTasks::countDown);
|
seedNode.shutDown(pendingTasks::countDown);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue