ARTEMIS-2974 - fix up the regexp used in the test to match to the end

This commit is contained in:
gtully 2021-07-09 14:56:29 +01:00
parent 3961fd1cf2
commit 4c06d447fd
1 changed files with 4 additions and 4 deletions

View File

@ -229,10 +229,10 @@ public class MultiThreadedAuditLoggingTest extends ActiveMQTestBase {
Assert.assertFalse(producer.failed); Assert.assertFalse(producer.failed);
} }
assertFalse(AssertionLoggerHandler.matchText(".*User queue1\\(queue1\\).* is consuming a message from queue2")); assertFalse(AssertionLoggerHandler.matchText(".*User queue1\\(queue1\\).* is consuming a message from queue2.*"));
assertFalse(AssertionLoggerHandler.matchText(".*User queue2\\(queue2\\).* is consuming a message from queue1")); assertFalse(AssertionLoggerHandler.matchText(".*User queue2\\(queue2\\).* is consuming a message from queue1.*"));
assertTrue(AssertionLoggerHandler.matchText(".*User queue2\\(queue2\\).* is consuming a message from queue2")); assertTrue(AssertionLoggerHandler.matchText(".*User queue2\\(queue2\\).* is consuming a message from queue2.*"));
assertTrue(AssertionLoggerHandler.matchText(".*User queue1\\(queue1\\).* is consuming a message from queue1")); assertTrue(AssertionLoggerHandler.matchText(".*User queue1\\(queue1\\).* is consuming a message from queue1.*"));
} }
} }
} }