Skip to content

Commit cde61f3

Browse files
authored
e2e: wait for pods after disabling anti affinity (#862)
1 parent 35b2213 commit cde61f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e/tests/test_e2e.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,15 @@ def assert_distributed_pods(self, master_node, replica_nodes, cluster_label):
441441
self.assert_failover(
442442
master_node, len(replica_nodes), failover_targets, cluster_label)
443443

444-
# disable pod anti affintiy again
444+
# now disable pod anti affintiy again which will cause yet another failover
445445
patch_disable_antiaffinity = {
446446
"data": {
447447
"enable_pod_antiaffinity": "false"
448448
}
449449
}
450450
k8s.update_config(patch_disable_antiaffinity)
451+
k8s.wait_for_pod_start('spilo-role=master')
452+
k8s.wait_for_pod_start('spilo-role=replica')
451453

452454

453455
class K8sApi:

0 commit comments

Comments
 (0)