NO-JIRA Fixing intermittent failures on BridgeTest

This commit is contained in:
Clebert Suconic 2020-04-16 12:02:55 -04:00
parent 41f62b9de2
commit 0abe7e7bc0
1 changed files with 3 additions and 4 deletions

View File

@ -751,7 +751,8 @@ public class BridgeTest extends ActiveMQTestBase {
server1.start();
Thread.sleep(1000);
Wait.assertTrue(server1::isActive);
ClientSessionFactory sf1 = locator.createSessionFactory(server1tc);
@ -885,8 +886,6 @@ public class BridgeTest extends ActiveMQTestBase {
tx.commit();
}
Thread.sleep(100);
ClientSessionFactory sf1 = locator.createSessionFactory(server1tc);
@ -1578,8 +1577,8 @@ public class BridgeTest extends ActiveMQTestBase {
public void run() {
try {
System.out.println("Stopping server");
latch.countDown();
serverToStop.fail(false);
latch.countDown();
} catch (Exception e) {
e.printStackTrace();
}