Skip to content

Commit

Permalink
MINOR: modified ProducerIdExpirationTest to hopefully be less flaky (a…
Browse files Browse the repository at this point in the history
…pache#12824)

ProducerIdExpirationTest has failed on a few PR runs. Using a waitUntil instead.

Reviewers: Luke Chen <[email protected]>
  • Loading branch information
jolshan authored Nov 5, 2022
1 parent bc780c7 commit 9467fc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class ProducerIdExpirationTest extends KafkaServerTestHarness {
producer.flush()

// Ensure producer IDs are added.
assertEquals(1, producerState.size)
TestUtils.waitUntilTrue(() => producerState.size == 1, "Producer IDs were not added.")

producer.abortTransaction()

Expand Down

0 comments on commit 9467fc3

Please sign in to comment.