Fixed ghost error due to bad timing in the test
This commit is contained in:
@@ -318,14 +318,13 @@ public class ServerIntegrationPahoTest {
|
|||||||
|
|
||||||
//publish a QoS 1 message another client publish a message on the topic
|
//publish a QoS 1 message another client publish a message on the topic
|
||||||
publishFromAnotherClient("/topic", "Hello MQTT".getBytes(), 2);
|
publishFromAnotherClient("/topic", "Hello MQTT".getBytes(), 2);
|
||||||
|
m_callback.reinit();
|
||||||
m_client.connect(options);
|
m_client.connect(options);
|
||||||
|
|
||||||
assertEquals("Hello MQTT", m_callback.getMessage().toString());
|
assertEquals("Hello MQTT", m_callback.getMessage().toString());
|
||||||
assertEquals(2, m_callback.getMessage().getQos());
|
assertEquals(2, m_callback.getMessage().getQos());
|
||||||
}
|
}
|
||||||
|
|
||||||
//BUG
|
|
||||||
@Test
|
@Test
|
||||||
public void testPublishReceiveWithQoS2() throws Exception {
|
public void testPublishReceiveWithQoS2() throws Exception {
|
||||||
LOG.info("*** testPublishReceiveWithQoS2 ***");
|
LOG.info("*** testPublishReceiveWithQoS2 ***");
|
||||||
@@ -337,7 +336,7 @@ public class ServerIntegrationPahoTest {
|
|||||||
|
|
||||||
//publish a QoS 1 message another client publish a message on the topic
|
//publish a QoS 1 message another client publish a message on the topic
|
||||||
publishFromAnotherClient("/topic", "Hello MQTT".getBytes(), 2);
|
publishFromAnotherClient("/topic", "Hello MQTT".getBytes(), 2);
|
||||||
|
m_callback.reinit();
|
||||||
m_client.connect(options);
|
m_client.connect(options);
|
||||||
|
|
||||||
assertNotNull(m_callback);
|
assertNotNull(m_callback);
|
||||||
|
|||||||
Reference in New Issue
Block a user