Skip to content

Commit df382a6

Browse files
committed
make a test more defensive
1 parent 0347d67 commit df382a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/src/com/rabbitmq/client/test/functional/TTLHandling.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ public void testZeroTTLDelivery() throws Exception {
178178

179179
protected void expectBodyAndRemainingMessages(String body, int messagesLeft) throws IOException {
180180
GetResponse response = channel.basicGet(TTL_QUEUE_NAME, false);
181+
assertNotNull(response);
181182
assertEquals(body, new String(response.getBody()));
182183
assertEquals(messagesLeft, response.getMessageCount());
183184
}

0 commit comments

Comments
 (0)