Skip to content

Commit 50e3d17

Browse files
authored
test_in_kafka_group: fix flaky test (#540)
Signed-off-by: Shizuo Fujita <[email protected]>
1 parent f38282e commit 50e3d17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/plugin/test_in_kafka_group.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_multi_worker_support
3939
class ConsumeTest < self
4040
def setup
4141
@kafka = Kafka.new(["localhost:9092"], client_id: 'kafka')
42+
@kafka.create_topic(TOPIC_NAME)
4243
@producer = @kafka.producer
4344
end
4445

@@ -59,6 +60,7 @@ def test_consume
5960
d = create_driver
6061

6162
d.run(expect_records: 1, timeout: 10) do
63+
sleep 0.1
6264
@producer.produce("Hello, fluent-plugin-kafka!", topic: TOPIC_NAME)
6365
@producer.deliver_messages
6466
end

0 commit comments

Comments
 (0)