clebertsuconic commented on a change in pull request #2538: NO-JIRA fix race
condition in QueueQueryTest
URL: https://github.com/apache/activemq-artemis/pull/2538#discussion_r253671205
##########
File path:
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/server/QueueQueryTest.java
##########
@@ -161,14 +161,14 @@ public void testQueueQueryOnAutoCreatedQueueWithFQQN()
throws Exception {
QueueQueryResult queueQueryResult = server.queueQuery(fqqn);
assertEquals(queueName, queueQueryResult.getName());
assertEquals(addressName, queueQueryResult.getAddress());
- Wait.assertEquals(1, server.queueQuery(fqqn)::getMessageCount);
+ Wait.assertEquals(1, () -> server.queueQuery(fqqn).getMessageCount());
Review comment:
the only difference here is that queueQuery(fqqn) will be performed every
time.
is the queue going to be created here during the execution? otherwise this
is the same thing.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services