Fixed NPE exception of inflight ACK because the publisher with clean=true removed all messages, also the published from message store

This commit is contained in:
andsel
2017-01-04 11:17:30 +01:00
parent 2c43c74fe3
commit 480e36579c
4 changed files with 15 additions and 11 deletions
@@ -74,7 +74,7 @@ public class ServerIntegrationFuseTest {
@Test
public void checkWillTestamentIsPublishedOnConnectionKill_noRetain() throws Exception {
LOG.info("checkWillTestamentIsPublishedOnConnectionKill");
LOG.info("checkWillTestamentIsPublishedOnConnectionKill_noRetain");
String willTestamentTopic = "/will/test";
String willTestamentMsg = "Bye bye";
@@ -93,7 +93,6 @@ public class ServerIntegrationFuseTest {
m_mqtt.setClientId("Subscriber");
m_subscriber = m_mqtt.blockingConnection();
m_subscriber.connect();
// Topic[] topics = new Topic[]{new Topic(willTestamentTopic, QoS.AT_LEAST_ONCE)};
Topic[] topics = new Topic[]{new Topic(willTestamentTopic, QoS.AT_MOST_ONCE)};
m_subscriber.subscribe(topics);