Skip to content

Commit 4274226

Browse files
committed
ci: improve robustness of tests
1 parent ca44d66 commit 4274226

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,19 @@ jobs:
112112
run: |
113113
. ci/common
114114
await_jupyterhub
115-
echo "curl http://localhost:30902/hub/api/" should print the JupyterHub version
116-
curl http://localhost:30902/hub/api/
115+
116+
echo curl http://localhost:30902/hub/api/ should print the JupyterHub version
117+
curl http://localhost:30902/hub/api/ --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
117118
118119
- name: Wait for BinderHub to be ready
119120
if: matrix.test == 'helm'
120121
timeout-minutes: 10
121122
run: |
122123
. ci/common
123124
await_binderhub
124-
echo "curl http://localhost:30901/health" to check BinderHub\'s health
125-
curl http://localhost:30901/health
125+
126+
echo curl http://localhost:30901/health to check BinderHub\'s health
127+
curl http://localhost:30901/health --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
126128
127129
- name: Run main tests
128130
if: matrix.test == 'main'

0 commit comments

Comments
 (0)