MINOR: modified ProducerIdExpirationTest to hopefully be less flaky (#12824)

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

Reviewers: Luke Chen <showuon@gmail.com>
This commit is contained in:
Justine Olshan 2022-11-04 23:04:35 -07:00 committed by GitHub
parent bc780c7c32
commit 9467fc3305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()