Skip to content

Commit f95f641

Browse files
committed
Adding a sleep to avoid test flakiness
1 parent 5267371 commit f95f641

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/basictests/ds-pipelines.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function create_pipeline() {
2929
if [[ -z $route ]]; then
3030
oc expose service ds-pipeline
3131
fi
32+
sleep 60 #TODO: quick fix for race condition, implement a better check to begin test execution once service is ready
3233
ROUTE=$(oc get route ds-pipeline --template={{.spec.host}})
3334
PIPELINE_ID=$(curl -s -F "uploadfile=@${RESOURCEDIR}/ds-pipelines/test-pipeline-run.yaml" ${ROUTE}/apis/v1beta1/pipelines/upload | jq -r .id)
3435
os::cmd::try_until_not_text "curl -s ${ROUTE}/apis/v1beta1/pipelines/${PIPELINE_ID} | jq" "null" $odhdefaulttimeout $odhdefaultinterval

0 commit comments

Comments
 (0)