Skip to content

fix(test): avoid race condition in TwoBrokerVirtualTopicSelectorAwareForwardingTest#1951

Open
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:fix/flaky-virtual-topic-selector-forwarding-test
Open

fix(test): avoid race condition in TwoBrokerVirtualTopicSelectorAwareForwardingTest#1951
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:fix/flaky-virtual-topic-selector-forwarding-test

Conversation

@jbonofre
Copy link
Copy Markdown
Member

Replace bare assertEquals with Wait.waitFor for the queue depth check in testSelectorAwareForwarding. The broker decrements its messages counter only after processing the MessageAck asynchronously, so asserting immediately after waitForMessagesToArrive could fire before the ACK is processed on a loaded CI runner.

…ForwardingTest

Replace bare assertEquals with Wait.waitFor for the queue depth check in
testSelectorAwareForwarding. The broker decrements its messages counter only
after processing the MessageAck asynchronously, so asserting immediately after
waitForMessagesToArrive could fire before the ACK is processed on a loaded CI runner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants