-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve tests to await port being open
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ jobs: | |
coverage: none | ||
- run: make | ||
- run: make served | ||
- run: bash tests/await.bash http://clue.localhost/ | ||
- run: make test | ||
- run: git config --global user.name "GitHub Actions" && git config --global user.email "[email protected]" | ||
- run: git config --global url."https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# @copyright Copyright (c) 2024 Christian Lück, taken from https://github.com/clue/framework-x/pull/3 with permission | ||
|
||
base=${1:-http://clue.localhost/} | ||
base=${base%/} | ||
|
||
for i in {1..600} | ||
do | ||
out=$(curl -v -X PROBE $base/ 2>&1) && exit 0 || echo -n . | ||
sleep 0.1 | ||
done | ||
|
||
echo | ||
echo "$out" | ||
exit 1 |