diff --git a/core/src/test/scala/unit/kafka/utils/TestUtils.scala b/core/src/test/scala/unit/kafka/utils/TestUtils.scala index 59427c1f280..9091dcb30f7 100755 --- a/core/src/test/scala/unit/kafka/utils/TestUtils.scala +++ b/core/src/test/scala/unit/kafka/utils/TestUtils.scala @@ -769,7 +769,7 @@ object TestUtils extends Logging { msg: => String, waitTimeMs: Long = JTestUtils.DEFAULT_MAX_WAIT_MS): Unit = { waitUntilTrue(() => { - consumer.poll(Duration.ofMillis(50)) + consumer.poll(Duration.ofMillis(100)) action() }, msg = msg, pause = 0L, waitTimeMs = waitTimeMs) } @@ -779,7 +779,7 @@ object TestUtils extends Logging { msg: => String, waitTimeMs: Long = JTestUtils.DEFAULT_MAX_WAIT_MS): Unit = { waitUntilTrue(() => { - val records = consumer.poll(Duration.ofMillis(50)) + val records = consumer.poll(Duration.ofMillis(100)) action(records) }, msg = msg, pause = 0L, waitTimeMs = waitTimeMs) }