diff --git a/tests/integration/test_keeper_snapshot_small_distance/test.py b/tests/integration/test_keeper_snapshot_small_distance/test.py index 57208ba1fd0..f0074b5379e 100644 --- a/tests/integration/test_keeper_snapshot_small_distance/test.py +++ b/tests/integration/test_keeper_snapshot_small_distance/test.py @@ -29,6 +29,8 @@ def start_zookeeper(node): def stop_zookeeper(node): node.exec_in_container(["bash", "-c", "/opt/zookeeper/bin/zkServer.sh stop"]) + while node.get_process_pid("zookeeper") != None: + time.sleep(0.2) def clear_zookeeper(node): diff --git a/tests/integration/test_keeper_zookeeper_converter/test.py b/tests/integration/test_keeper_zookeeper_converter/test.py index 3c48e9cec22..acd2b9810a0 100644 --- a/tests/integration/test_keeper_zookeeper_converter/test.py +++ b/tests/integration/test_keeper_zookeeper_converter/test.py @@ -24,6 +24,8 @@ def start_zookeeper(): def stop_zookeeper(): node.exec_in_container(["bash", "-c", "/opt/zookeeper/bin/zkServer.sh stop"]) + while node.get_process_pid("zookeeper") != None: + time.sleep(0.2) def clear_zookeeper():