Skip to content

Commit

Permalink
Edit test-alive script
Browse files Browse the repository at this point in the history
  • Loading branch information
leihuayi committed Aug 18, 2023
1 parent 38dca41 commit 2848708
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ else
TAG=${TAG} ${DC} -f docker-compose-$*.yml up -d
endif

test-frontend-alive:
${DC} --profile app -f docker-compose-dev.yml up -d
sleep 10
curl -s -o /dev/null localhost:8080

down-%:
${DC} -f docker-compose-$*.yml down

Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/test-alive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test_result=1
TAG=$(make get-current-version)

until [ "$elapse" -ge "$timeout" -o "$test_result" -eq "0" ] ; do
[[ "$(curl -L -s $1/api/)" == "Basegun backend" ]]
[[ "$(curl -L -s $1/api/version)" == "$TAG" ]]
test_result=$?
if [ "$test_result" -gt "0" ] ; then
echo "Waited $elapse seconds";
Expand Down

0 comments on commit 2848708

Please sign in to comment.