-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): fix docker compose (#814)
* fix(tests): fix docker compose * docker-compose v1 was removed from runner images * refactor(tests): fix style of test
- Loading branch information
1 parent
18b6191
commit df331a5
Showing
4 changed files
with
7 additions
and
8 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
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
version: '3.1' | ||
services: | ||
mqtt: | ||
image: eclipse-mosquitto | ||
|
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/bin/bash | ||
NEXT_WAITTIME=0 | ||
WAITTIME_LIMIT_SEC=120 | ||
while [[ "$(docker inspect cacert_test_test_1 --format='{{.State.Status}}')" != "exited" || "$NEXT_WAITTIME" == "$WAITTIME_LIMIT_SEC" ]] | ||
while [[ "$(docker inspect cacert_test-test-1 --format='{{.State.Status}}')" != "exited" || "$NEXT_WAITTIME" == "$WAITTIME_LIMIT_SEC" ]] | ||
do | ||
echo "Waiting for test container to become ready since ${NEXT_WAITTIME}s..." | ||
sleep 1 | ||
NEXT_WAITTIME=$(($NEXT_WAITTIME+1)) | ||
NEXT_WAITTIME=$((NEXT_WAITTIME+1)) | ||
done | ||
docker-compose logs | ||
exit "$(docker inspect cacert_test_test_1 --format='{{.State.ExitCode}}')" | ||
docker compose logs | ||
exit "$(docker inspect cacert_test-test-1 --format='{{.State.ExitCode}}')" |