Wait for pods to run.

This commit is contained in:
Jan Mußler 2020-10-27 15:19:19 +01:00
parent 326c67b670
commit b606b6f77b
1 changed files with 5 additions and 5 deletions

View File

@ -721,7 +721,12 @@ class EndToEndTestCase(unittest.TestCase):
k8s.update_config(patch_toleration_config, step="allow tainted nodes")
self.eventuallyEqual(lambda: k8s.count_running_pods(), 2, "No 2 pods running")
self.eventuallyEqual(lambda: len(k8s.get_patroni_running_members("acid-minimal-cluster-0")), 2, "Postgres status did not enter running")
# toggle pod anti affinity to move replica away from master node
nm, new_replica_nodes = k8s.get_cluster_nodes()
new_master_node = nm[0]
self.assert_distributed_pods(new_master_node, new_replica_nodes, cluster_label)
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
@ -864,10 +869,5 @@ class EndToEndTestCase(unittest.TestCase):
return True
if __name__ == '__main__':
unittest.main()