add some logging to diagnose ci failure

This commit is contained in:
gtully 2017-05-04 10:23:13 +01:00
parent 18d05ba5e0
commit 2b3f0e5958
1 changed files with 21 additions and 16 deletions

View File

@ -1671,6 +1671,7 @@ public class MQTTTest extends MQTTTestSupport {
}
connectionSub.disconnect();
try {
for (int j = 0; j < numberOfRuns; j++) {
for (int i = 0; i < messagesPerRun; ++i) {
@ -1690,6 +1691,10 @@ public class MQTTTest extends MQTTTestSupport {
}
connectionSub.disconnect();
}
} catch (Exception exception) {
LOG.error("unexpected exception", exception);
exception.printStackTrace();
}
assertEquals("Should have received " + (messagesPerRun * (numberOfRuns + 1)) + " messages", (messagesPerRun * (numberOfRuns + 1)), received);
}