Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ private void preDestroy () {
try {
stop();
} catch (Exception ex) {
throw new RuntimeException();
throw new RuntimeException("Exception during broker preDestroy cleanup: " + getBrokerName(), ex);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ public void testPriorityMessagesWithJmsBrowser() throws Exception {
final ArrayList<Message> consumeList = consumeMessages("TestQ");
LOG.info("Consumed list {}", consumeList.size());

// wait until remaining messages are actually consumed
assertTrue("Remaining messages consumed",
Wait.waitFor(() -> consumeList.size() == numToSend - 1, 5000, 100));

// compare lists
// assertEquals("Iteration: " + i
// +", message 1 should be priority high", 5,
Expand Down