From 183195ff6f1c6f839e35f7e3e8de12c295d15cec Mon Sep 17 00:00:00 2001 From: Rafia Sabih Date: Mon, 16 Nov 2020 12:20:17 +0100 Subject: [PATCH] add sleep --- e2e/tests/test_e2e.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e2e/tests/test_e2e.py b/e2e/tests/test_e2e.py index 528572615..4d1a318eb 100644 --- a/e2e/tests/test_e2e.py +++ b/e2e/tests/test_e2e.py @@ -152,6 +152,7 @@ class EndToEndTestCase(unittest.TestCase): print('Operator log: {}'.format(k8s.get_operator_log())) raise + @timeout_decorator.timeout(TEST_TIMEOUT_SEC) def test_overwrite_pooler_deployment(self): self.k8s.create_with_kubectl("manifests/minimal-fake-pooler-deployment.yaml") self.eventuallyEqual(lambda: self.k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync") @@ -165,6 +166,7 @@ class EndToEndTestCase(unittest.TestCase): } }) + time.sleep(10) self.eventuallyEqual(lambda: self.k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync") self.eventuallyEqual(lambda: self.k8s.get_deployment_replica_count(name="acid-minimal-cluster-pooler"), 2, "Operator did not succeed in overwriting labels") @@ -178,6 +180,7 @@ class EndToEndTestCase(unittest.TestCase): } }) + time.sleep(10) self.eventuallyEqual(lambda: self.k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync") self.eventuallyEqual(lambda: self.k8s.count_running_pods("connection-pooler=acid-minimal-cluster-pooler"), 0, "Pooler pods not scaled down")