-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): improve flakey async producer test
The TestAsyncProducerRecoveryWithRetriesDisabled periodically fails and then passes on a re-run. Stepping through it I believe this was because the test had assumed metadata requests would always go to the seed/bootstrap broker, but they can actually go to any broker. So there was a 1 in 3 chance that the test would fail because it would await timeout of metadata requests that were never going to be responded to. Rewriting the test to use the handler map capability rather than the expectations interface and configuring the mock metadata responses on all mock brokers allows the test to pass quickly and reliably.
- Loading branch information
Showing
1 changed file
with
51 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters