mirror of https://github.com/apache/activemq.git
add test more time to clean up on slow machines
This commit is contained in:
parent
f57fd7daad
commit
b969358445
|
@ -80,7 +80,7 @@ abstract public class QueueMasterSlaveTestSupport extends JmsTopicSendReceiveWit
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
master.stop();
|
master.stop();
|
||||||
master.waitUntilStopped();
|
master.waitUntilStopped();
|
||||||
slaveStarted.await(5, TimeUnit.SECONDS);
|
slaveStarted.await(60, TimeUnit.SECONDS);
|
||||||
BrokerService brokerService = slave.get();
|
BrokerService brokerService = slave.get();
|
||||||
if( brokerService!=null ) {
|
if( brokerService!=null ) {
|
||||||
brokerService.stop();
|
brokerService.stop();
|
||||||
|
@ -129,7 +129,7 @@ abstract public class QueueMasterSlaveTestSupport extends JmsTopicSendReceiveWit
|
||||||
qConsumer.close();
|
qConsumer.close();
|
||||||
assertTrue(!master.isSlave());
|
assertTrue(!master.isSlave());
|
||||||
master.stop();
|
master.stop();
|
||||||
assertTrue("slave started", slaveStarted.await(15, TimeUnit.SECONDS));
|
assertTrue("slave started", slaveStarted.await(60, TimeUnit.SECONDS));
|
||||||
assertTrue(!slave.get().isSlave());
|
assertTrue(!slave.get().isSlave());
|
||||||
|
|
||||||
final String text = "ForUWhenSlaveKicksIn";
|
final String text = "ForUWhenSlaveKicksIn";
|
||||||
|
@ -146,7 +146,7 @@ abstract public class QueueMasterSlaveTestSupport extends JmsTopicSendReceiveWit
|
||||||
MessageConsumer advConsumer = session.createConsumer(AdvisorySupport.getMasterBrokerAdvisoryTopic());
|
MessageConsumer advConsumer = session.createConsumer(AdvisorySupport.getMasterBrokerAdvisoryTopic());
|
||||||
|
|
||||||
master.stop();
|
master.stop();
|
||||||
assertTrue("slave started", slaveStarted.await(15, TimeUnit.SECONDS));
|
assertTrue("slave started", slaveStarted.await(60, TimeUnit.SECONDS));
|
||||||
LOG.info("slave started");
|
LOG.info("slave started");
|
||||||
Message advisoryMessage = advConsumer.receive(5000);
|
Message advisoryMessage = advConsumer.receive(5000);
|
||||||
LOG.info("received " + advisoryMessage);
|
LOG.info("received " + advisoryMessage);
|
||||||
|
|
Loading…
Reference in New Issue