From 511cfb393dcc7765c30a0ff50d909ca88bbfa35a Mon Sep 17 00:00:00 2001 From: Konstantin Bogdanov Date: Tue, 12 Dec 2023 12:27:49 +0100 Subject: [PATCH] Remove `time.sleep` from test --- tests/integration/test_keeper_http_control/test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/test_keeper_http_control/test.py b/tests/integration/test_keeper_http_control/test.py index 49d2f70e6b0..65dc5bea909 100644 --- a/tests/integration/test_keeper_http_control/test.py +++ b/tests/integration/test_keeper_http_control/test.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import os -import time import pytest import requests @@ -61,7 +60,7 @@ def test_http_readiness_partitioned_cluster(started_cluster): follower = keeper_utils.get_any_follower(cluster, [node1, node2, node3]) pm.partition_instances(leader, follower) - time.sleep(3) + keeper_utils.wait_until_quorum_lost(cluster, follower) response = requests.get( "http://{host}:{port}/ready".format(host=follower.ip_address, port=9182)