diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java index 893ada5ee5..5af3a37cf8 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/RedeliveryPolicyTest.java @@ -540,7 +540,7 @@ public class RedeliveryPolicyTest extends JmsTestSupport { assertEquals("1st", m.getText()); String cause = m.getStringProperty(ActiveMQMessage.DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY); 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();