Skip to content

Commit f949d5e

Browse files
committed
fix one-pod on azure
1 parent fcb2317 commit f949d5e

File tree

1 file changed

+3
-2
lines changed
  • e2e-tests/one-pod

1 file changed

+3
-2
lines changed

e2e-tests/one-pod/run

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ main() {
3636

3737
cluster='one-pod-rs0'
3838
spinup_psmdb "$cluster" "$test_dir/conf/$cluster.yml" "1"
39+
wait_cluster_consistency "${cluster/-rs0/}"
3940

4041
desc 'check if service and pvc created with expected config'
4142
compare_kubectl service/$cluster
@@ -53,7 +54,7 @@ main() {
5354

5455
desc 'create secret and check custom config'
5556
kubectl_bin apply -f "$test_dir/conf/mongod-secret.yml"
56-
sleep 50
57+
wait_cluster_consistency "${cluster/-rs0/}"
5758

5859
desc 'check if statefulset created with expected config'
5960
compare_kubectl "statefulset/$cluster" "-secret"
@@ -69,7 +70,7 @@ main() {
6970

7071
desc 'create secret and check custom config'
7172
kubectl_bin apply -f "$test_dir/conf/mongod-secret-2.yml"
72-
sleep 50
73+
wait_cluster_consistency "${cluster/-rs0/}"
7374

7475
run_mongo \
7576
'db.serverCmdLineOpts()' \

0 commit comments

Comments
 (0)