always wait for replica after failover

This commit is contained in:
Felix Kunde 2020-02-26 15:17:47 +01:00
parent de1e51d678
commit 661b439221
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@ class EndToEndTestCase(unittest.TestCase):
k8s.api.custom_objects_api.patch_namespaced_custom_object( k8s.api.custom_objects_api.patch_namespaced_custom_object(
"acid.zalan.do", "v1", "default", "postgresqls", "acid-minimal-cluster", pg_patch_resources) "acid.zalan.do", "v1", "default", "postgresqls", "acid-minimal-cluster", pg_patch_resources)
k8s.wait_for_pod_failover(failover_targets, labels) k8s.wait_for_pod_failover(failover_targets, labels)
k8s.wait_for_pod_start('spilo-role=replica')
pods = k8s.api.core_v1.list_namespaced_pod( pods = k8s.api.core_v1.list_namespaced_pod(
'default', label_selector=labels).items 'default', label_selector=labels).items