From 6a16daf17256926fe0c76202eb80048f0b91038c Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Tue, 21 May 2019 12:44:39 +0200 Subject: [PATCH] wait also for replica to be up and running --- e2e/tests/test_smoke.py | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/tests/test_smoke.py b/e2e/tests/test_smoke.py index 727fcb2ca..42522631d 100755 --- a/e2e/tests/test_smoke.py +++ b/e2e/tests/test_smoke.py @@ -125,6 +125,7 @@ class SmokeTestCase(unittest.TestCase): # patch node and test if master is failing over to one of the expected nodes k8s.core_v1.patch_node(current_master_node, body) Utils.wait_for_master_failover(k8s, failover_targets, self.RETRY_TIMEOUT_SEC) + Utils.wait_for_pod_start(k8s, 'spilo-role=replica', self.RETRY_TIMEOUT_SEC) new_master_node, new_replica_nodes = Utils.get_spilo_nodes(k8s, labels) self.assertTrue(current_master_node != new_master_node, "Master on {} did not fail over to one of {}".format(current_master_node, failover_targets))