merlimat opened a new pull request, #25423: URL: https://github.com/apache/pulsar/pull/25423
## Motivation Fix flaky test `testRetentionSize` in `ManagedLedgerTest`. The test asserts the exact ledger count (`assertEquals`) after adding messages, but the current (empty) ledger may or may not have been created yet by the time the assertion runs, causing intermittent failures. ## Modifications Changed `assertEquals(ml.getLedgersInfoAsList().size(), totalMessage)` to `assertTrue(ml.getLedgersInfoAsList().size() >= totalMessage)` to account for the race between ledger creation and the assertion. ## Documentation - [x] `doc-not-needed` ## Matching PR in forked repository _No response_ -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
