Skip to content

Commit f7137c3

Browse files
committed
ci(bulk-model-sync-gradle): replace sleep with health-check
Waiting was flakey and the POST is no longer needed as MODELIX-615 has been resolved.
1 parent 5567d28 commit f7137c3

File tree

1 file changed

+1
-7
lines changed
  • bulk-model-sync-gradle-test

1 file changed

+1
-7
lines changed

bulk-model-sync-gradle-test/ci.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ fi
2121

2222
./gradlew runModelServer --console=plain &
2323
MODEL_SERVER_PID=$!
24-
sleep 5
2524

26-
#CI needs more time
27-
if [ "${CI}" = "true" ]; then
28-
sleep 20
29-
fi
30-
31-
curl -X POST http://127.0.0.1:28309/v2/repositories/ci-test/init
25+
curl -X GET --retry 30 --retry-connrefused --retry-delay 1 http://localhost:28309/health
3226

3327
./gradlew runSyncTestPush --console=plain --stacktrace
3428
./gradlew test --tests 'PushTest'

0 commit comments

Comments
 (0)