clebertsuconic commented on a change in pull request #3213:
URL: https://github.com/apache/activemq-artemis/pull/3213#discussion_r450566684
##########
File path:
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlTest.java
##########
@@ -514,8 +514,8 @@ public void testRemoveQueueFilter() throws Exception {
producer.send(m);
- assertNotNull(consumer1.receiveImmediate());
- assertNotNull(consumer2.receiveImmediate());
+ assertNotNull(consumer1.receive(1000));
Review comment:
@jsmucr: just a note here. if you intended to assertNotNull, do a
receive with a timeout.
if you assertNull, do a receiveImmediate (or receiveNoWait in JMS terms)..
or a very short timeout.
assertNotNull(receiveImmediate) is a bit fragile and it may break a test
intermittently.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]