mirror of https://github.com/apache/kafka.git
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:
parent
bc780c7c32
commit
9467fc3305
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue