Skip to content

Commit 1bcdd77

Browse files
Merge pull request opendatahub-io#107 from gregsheremeta/fix-e2e-sleep-bug
e2e: 5m sleep waiting for pods to come up had no effect, move it up
2 parents fd2790c + d8fbe16 commit 1bcdd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/basictests/dsp-operator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function create_and_verify_data_science_pipelines_resources() {
3131
os::cmd::expect_success "oc apply -n ${DSPAPROJECT} -f ${RESOURCEDIR}/test-dspo-cr.yaml"
3232
os::cmd::try_until_text "oc get crd -n ${DSPAPROJECT} datasciencepipelinesapplications.datasciencepipelinesapplications.opendatahub.io" "datasciencepipelinesapplications.datasciencepipelinesapplications.opendatahub.io" $odhdefaulttimeout $odhdefaultinterval
3333
os::cmd::try_until_text "oc -n ${DSPAPROJECT} get pods -l app=ds-pipeline-sample -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}'" "True" $odhdefaulttimeout $odhdefaultinterval
34-
running_pods=$(oc get pods -n ${DSPAPROJECT} -l component=data-science-pipelines --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w)
3534
echo "Sleeping for 5 minutes for the DSPO CR settle up "
3635
sleep 5m
36+
running_pods=$(oc get pods -n ${DSPAPROJECT} -l component=data-science-pipelines --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w)
3737
os::cmd::expect_success "if [ "$running_pods" -gt "0" ]; then exit 0; else exit 1; fi"
3838
}
3939

0 commit comments

Comments
 (0)