no jira - fix intermittent failure by not differenciating between dispatch of delivery loops, it can be either depending on timing

This commit is contained in:
gtully 2019-09-06 12:06:54 +01:00
parent a0f4f1c93d
commit 640354fe79
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ public class RedeliveryPolicyTest extends JmsTestSupport {
assertEquals("1st", m.getText()); assertEquals("1st", m.getText());
String cause = m.getStringProperty(ActiveMQMessage.DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY); String cause = m.getStringProperty(ActiveMQMessage.DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY);
assertTrue("cause exception has policy ref: " + cause, cause.contains("RedeliveryPolicy")); assertTrue("cause exception has policy ref: " + cause, cause.contains("RedeliveryPolicy"));
assertTrue("cause exception has pre dispatch and count:" + cause, cause.contains("Dispatch[5]")); assertTrue("cause exception has pre dispatch and count:" + cause, cause.contains("[5]"));
dlqSession.commit(); dlqSession.commit();