mirror of https://github.com/apache/activemq.git
Added @Ignore to testReceiveMessageSentWhileOffline as it was failing regularly on both. See AMQ-4712
This commit is contained in:
parent
d29bab50e5
commit
18e163de5e
|
@ -24,12 +24,16 @@ import org.apache.activemq.security.*;
|
|||
import org.apache.activemq.util.Wait;
|
||||
import org.fusesource.mqtt.client.BlockingConnection;
|
||||
import org.fusesource.mqtt.client.MQTT;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||
|
||||
import java.util.LinkedList;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public class MQTTNioTest extends MQTTTest {
|
||||
|
||||
@Override
|
||||
|
@ -37,6 +41,13 @@ public class MQTTNioTest extends MQTTTest {
|
|||
return "mqtt+nio";
|
||||
}
|
||||
|
||||
@Ignore("See AMQ-4712")
|
||||
@Override
|
||||
@Test
|
||||
public void testReceiveMessageSentWhileOffline() throws Exception {
|
||||
super.testReceiveMessageSentWhileOffline();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPingOnMQTTNIO() throws Exception {
|
||||
addMQTTConnector("maxInactivityDuration=-1");
|
||||
|
|
|
@ -25,9 +25,18 @@ import javax.net.ssl.SSLContext;
|
|||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import org.fusesource.mqtt.client.MQTT;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@RunWith(BlockJUnit4ClassRunner.class)
|
||||
public class MQTTSSLTest extends MQTTTest {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(MQTTSSLTest.class);
|
||||
|
||||
public void setUp() throws Exception {
|
||||
String basedir = basedir().getPath();
|
||||
System.setProperty("javax.net.ssl.trustStore", basedir+"/src/test/resources/client.keystore");
|
||||
|
@ -44,6 +53,14 @@ public class MQTTSSLTest extends MQTTTest {
|
|||
return "mqtt+ssl";
|
||||
}
|
||||
|
||||
@Ignore("See AMQ-4712")
|
||||
@Override
|
||||
@Test
|
||||
public void testReceiveMessageSentWhileOffline() throws Exception {
|
||||
super.testReceiveMessageSentWhileOffline();
|
||||
}
|
||||
|
||||
|
||||
protected MQTT createMQTTConnection() throws Exception {
|
||||
MQTT mqtt = new MQTT();
|
||||
mqtt.setConnectAttemptsMax(1);
|
||||
|
|
Loading…
Reference in New Issue