Commit 6adc875
authored
fix(test): avoid race condition in TwoBrokerVirtualTopicSelectorAwareForwardingTest (#1951)
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.1 parent 0df19ae commit 6adc875
1 file changed
Lines changed: 5 additions & 4 deletions
File tree
- activemq-unit-tests/src/test/java/org/apache/activemq/usecases
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
527 | 528 | | |
528 | 529 | | |
529 | 530 | | |
| |||
0 commit comments