clebertsuconic commented on a change in pull request #2649: NO-JIRA Fix test
URL: https://github.com/apache/activemq-artemis/pull/2649#discussion_r279115634
##########
File path:
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/GlobalPagingTest.java
##########
@@ -334,7 +334,7 @@ public void
testManagementMessageRequestCannotFailAfterFailedDirectDeliver() thr
final MessageReference reference =
MessageReference.Factory.createReference(session.createMessage(false), queue);
//it will cause QueueImpl::directDeliver -> false
queue.addHead(reference, false);
- Assert.assertSame(reference,
queue.removeReferenceWithID(reference.getMessageID()));
+ queue.removeReferenceWithID(reference.getMessageID());
Review comment:
@franz1981 make it not racy then:
```java
Wait.assertNotNull(() -> queue.removReferenceWithID(reference.getMessageID())
```
It seems to me you could even use Wait.assertSame
----------------------------------------------------------------
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]
With regards,
Apache Git Services