Skip to content

Commit

Permalink
Add a small sleep before running tests (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelsabbahy authored Sep 28, 2016
1 parent 46db773 commit 443cebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ opts=(--cap-add SYS_ADMIN -v "$PWD/goss:/goss" -d --name "$container_name" $(se
id=$(docker run "${opts[@]}" "aelsabbahy/goss_$os" /sbin/init)
ip=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$id")
trap "rv=\$?; docker rm -vf $id; exit \$rv" INT TERM EXIT
# Give httpd time to start up
[[ $os != "arch" ]] && docker_exec "/goss/$os/goss-linux-$arch" -g "/goss/goss-wait.json" validate -r 10s -s 100ms
# Give httpd time to start up, adding 1 second to see if it helps with intermittent CI failures
[[ $os != "arch" ]] && docker_exec "/goss/$os/goss-linux-$arch" -g "/goss/goss-wait.json" validate -r 10s -s 100ms && sleep 1

#out=$(docker exec "$container_name" bash -c "time /goss/$os/goss-linux-$arch -g /goss/$os/goss.json validate")
out=$(docker_exec "/goss/$os/goss-linux-$arch" -g "/goss/$os/goss.json" validate)
Expand Down

0 comments on commit 443cebe

Please sign in to comment.