mirror of https://github.com/apache/activemq.git
add autofail as mqtttest seems to hang ci build in jenkins atm
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1350016 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dc258ab2ae
commit
e32d6f6645
|
@ -26,6 +26,7 @@ import javax.jms.Session;
|
|||
import javax.jms.TextMessage;
|
||||
import org.apache.activemq.ActiveMQConnection;
|
||||
import org.apache.activemq.ActiveMQConnectionFactory;
|
||||
import org.apache.activemq.AutoFailTestSupport;
|
||||
import org.apache.activemq.broker.BrokerService;
|
||||
import org.apache.activemq.command.ActiveMQMessage;
|
||||
import org.apache.activemq.util.ByteSequence;
|
||||
|
@ -49,9 +50,11 @@ public class MQTTTest {
|
|||
protected BrokerService brokerService;
|
||||
protected Vector<Throwable> exceptions = new Vector<Throwable>();
|
||||
protected int numberOfMessages;
|
||||
AutoFailTestSupport autoFailTestSupport = new AutoFailTestSupport() {};
|
||||
|
||||
@Before
|
||||
public void startBroker() throws Exception {
|
||||
autoFailTestSupport.startAutoFailThread();
|
||||
exceptions.clear();
|
||||
brokerService = new BrokerService();
|
||||
brokerService.setPersistent(false);
|
||||
|
@ -64,6 +67,7 @@ public class MQTTTest {
|
|||
if (brokerService != null) {
|
||||
brokerService.stop();
|
||||
}
|
||||
autoFailTestSupport.stopAutoFailThread();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue