We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99aea6c commit de20e5eCopy full SHA for de20e5e
tests/integration/test-factory-reset
@@ -109,7 +109,14 @@ fi
109
success API config file reset
110
111
wait-until-restarted() {
112
- edo log_as_trace_ xh GET -Iq "${INTEGRATION_TEST_HOST:?}"/api-docs/openapi.json --timeout 3 -p=HBhm || abort API stuck restarting.
+ local start=$(date +%s) now elapsed timeout=3
113
+ while ! edo log_as_trace_ xh GET -Iq "${INTEGRATION_TEST_HOST:?}"/api-docs/openapi.json --timeout $timeout -p=HBhm; do
114
+ now=$(date +%s)
115
+ elapsed=$((now - start))
116
+ if (( elapsed >= $timeout )); then
117
+ abort API stuck restarting.
118
+ fi
119
+ done
120
}
121
122
info Waiting for the API to restart…
0 commit comments