Skip to content

Commit 724dd2b

Browse files
authored
fix(test): fix snapshot_test (#2076)
Signed-off-by: Robin Han <[email protected]>
1 parent c772600 commit 724dd2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/kafkatest/tests/core/snapshot_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from kafkatest.tests.produce_consume_validate import ProduceConsumeValidateTest
2727
from kafkatest.utils import is_int
2828
import random
29+
import time
2930

3031
class TestSnapshots(ProduceConsumeValidateTest):
3132

@@ -251,6 +252,7 @@ def test_controller(self, metadata_quorum=quorum.combined_kraft, use_new_coordin
251252
for node in self.controller_nodes:
252253
self.logger.debug("Restarting node: %s", self.kafka.controller_quorum.who_am_i(node))
253254
self.kafka.controller_quorum.clean_node(node)
255+
time.sleep(10) # AutoMQ inject, try fix the test in azure runner
254256
self.kafka.controller_quorum.start_node(node)
255257

256258
# Scenario -- Re-init controllers with a clean kafka dir and
@@ -261,6 +263,7 @@ def test_controller(self, metadata_quorum=quorum.combined_kraft, use_new_coordin
261263
for node in self.controller_nodes:
262264
self.logger.debug("Restarting node: %s", self.kafka.controller_quorum.who_am_i(node))
263265
self.kafka.controller_quorum.clean_node(node)
266+
time.sleep(10) # AutoMQ inject
264267
# Now modify the cluster to create more metadata changes
265268
self.topics_created += self.create_n_topics(topic_count=5)
266269
self.kafka.controller_quorum.start_node(node)

0 commit comments

Comments
 (0)