Skip to content

Commit e52f391

Browse files
committed
Try to avoid curl error log in normal case on CI
1 parent d672142 commit e52f391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
cfg=`echo "$test" | sed 's/\.py$/.conf/'`
5555
python -m scrapyd_k8s -c scrapyd_k8s.sample-docker.conf -c "$cfg" &
5656
# wait for scrapyd-k8s to become ready
57-
curl --retry 20 --retry-delay 2 --retry-all-errors http://localhost:6800/daemonstatus.json
57+
sleep 1; curl --retry 20 --retry-delay 2 --retry-all-errors http://localhost:6800/daemonstatus.json
5858
# run test
5959
pytest -vv --color=yes "$test"
6060
# stop scrapyd-k8s again
@@ -190,7 +190,7 @@ jobs:
190190
[ -e "$cfg" ] || cfg=/dev/null
191191
python -m scrapyd_k8s -c scrapyd_k8s.sample-k8s.conf -c "$cfg" &
192192
# wait for scrapyd-k8s to become ready
193-
curl --retry 20 --retry-delay 2 --retry-all-errors http://localhost:6800/daemonstatus.json
193+
sleep 1; curl --retry 20 --retry-delay 2 --retry-all-errors http://localhost:6800/daemonstatus.json
194194
# run test
195195
pytest -vv --color=yes "$test"
196196
# stop scrapyd-k8s again

0 commit comments

Comments
 (0)