Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wait time in Workbench test runner to ensure services are up
Browse files Browse the repository at this point in the history
ianpittwood committed Apr 9, 2024
1 parent 004006c commit 74e3f54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workbench/test/run_tests.sh
Original file line number Diff line number Diff line change
@@ -9,15 +9,17 @@ trap 'err=$?; echo >&2 "run_tests.sh encountered an error: $err"; cat /tmp/start
# start rstudio-server
echo "--> Starting RStudio Workbench"
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf > /tmp/startup.log 2>&1 &
sleep 5

echo "--> Waiting for workbench to startup... with RSW_TIMEOUT: $RSW_TIMEOUT"
wait-for-it.sh localhost:8787 -t $RSW_TIMEOUT
wait-for-it.sh localhost:5559 -t $RSW_TIMEOUT
echo "--> Startup complete"
sleep 5

GOSS_FILE=${GOSS_FILE:-/tmp/test/goss.yaml}
GOSS_VERSION=${GOSS_VERSION:-0.4.6}
GOSS_MAX_CONCURRENT=${GOSS_MAX_CONCURRENT:-50}
GOSS_MAX_CONCURRENT=${GOSS_MAX_CONCURRENT:-10}

# install goss to tmp location and make executable
curl -sL https://github.com/aelsabbahy/goss/releases/download/v$GOSS_VERSION/goss-linux-amd64 -o /tmp/goss \

0 comments on commit 74e3f54

Please sign in to comment.