From 4456aad1723b04a6b41afbabc7d26d25e04a9d78 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Wed, 6 Jan 2021 12:54:30 +0100 Subject: [PATCH] raise interval for node affinity test --- e2e/tests/test_e2e.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/tests/test_e2e.py b/e2e/tests/test_e2e.py index 9e2035652..585051d06 100644 --- a/e2e/tests/test_e2e.py +++ b/e2e/tests/test_e2e.py @@ -992,7 +992,7 @@ class EndToEndTestCase(unittest.TestCase): plural="postgresqls", name="acid-minimal-cluster", body=patch_node_affinity_config) - self.eventuallyEqual(lambda: self.k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync") + self.eventuallyEqual(lambda: self.k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync", 60, 5) # node affinity change should cause replica to relocate from replica node to master node due to node affinity requirement k8s.wait_for_pod_failover(master_node, 'spilo-role=replica,' + cluster_label) @@ -1024,7 +1024,7 @@ class EndToEndTestCase(unittest.TestCase): plural="postgresqls", name="acid-minimal-cluster", body=patch_node_remove_affinity_config) - self.eventuallyEqual(lambda: self.k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync") + self.eventuallyEqual(lambda: self.k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync", 60, 5) # remove node affinity to move replica away from master node nm, new_replica_nodes = k8s.get_cluster_nodes()