mirror of https://github.com/apache/activemq.git
test that did not stop broker in teardown, schedualer db lock on startup shows it: https://issues.apache.org/activemq/browse/AMQ-2897
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@998015 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf7a935b06
commit
ba78db89a3
|
@ -27,12 +27,12 @@ import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
public class MasterSlaveProducerFlowControlTest extends ProducerFlowControlTest {
|
public class MasterSlaveProducerFlowControlTest extends ProducerFlowControlTest {
|
||||||
static final Log LOG = LogFactory.getLog(MasterSlaveProducerFlowControlTest.class);
|
static final Log LOG = LogFactory.getLog(MasterSlaveProducerFlowControlTest.class);
|
||||||
|
BrokerService slave;
|
||||||
protected BrokerService createBroker() throws Exception {
|
protected BrokerService createBroker() throws Exception {
|
||||||
BrokerService service = super.createBroker();
|
BrokerService service = super.createBroker();
|
||||||
service.start();
|
service.start();
|
||||||
|
|
||||||
BrokerService slave = new BrokerService();
|
slave = new BrokerService();
|
||||||
slave.setBrokerName("Slave");
|
slave.setBrokerName("Slave");
|
||||||
slave.setPersistent(false);
|
slave.setPersistent(false);
|
||||||
slave.setUseJmx(false);
|
slave.setUseJmx(false);
|
||||||
|
@ -54,4 +54,11 @@ public class MasterSlaveProducerFlowControlTest extends ProducerFlowControlTest
|
||||||
slave.start();
|
slave.start();
|
||||||
return service;
|
return service;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void tearDown() throws Exception {
|
||||||
|
super.tearDown();
|
||||||
|
if (slave != null) {
|
||||||
|
slave.stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue