Indicate when nodes are being stopped in the network stress test

It may help distinguish errors derived from forcibly stopping nodes (e.g. after a timeout).
This commit is contained in:
Ivan Vilata-i-Balaguer 2016-05-11 20:33:31 +02:00
parent da5b59b06b
commit 2881a3dd63

View File

@ -228,6 +228,8 @@ 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());