File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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()' \
You can’t perform that action at this time.
0 commit comments