From a96b120a3f606bde8b9243f03a29f3f32bcb1711 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 10 Aug 2020 07:40:30 +0200 Subject: [PATCH] Use 0.5s timeout consistently for all background scripts --- scripts/simapp/start.sh | 3 +++ scripts/tendermint/start.sh | 2 +- scripts/wasmd/start.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/simapp/start.sh b/scripts/simapp/start.sh index 6358ed3e..bdf48095 100755 --- a/scripts/simapp/start.sh +++ b/scripts/simapp/start.sh @@ -34,6 +34,9 @@ docker run --rm \ echo "simd running on http://localhost:$TENDERMINT_PORT_HOST and logging into $SIMD_LOGFILE" if [ -n "${CI:-}" ]; then + # Give process some time to come alive. No idea why this helps. Needed for CI. + sleep 0.5 + # Follow the logs in CI's background job tail -f "$SIMD_LOGFILE" fi diff --git a/scripts/tendermint/start.sh b/scripts/tendermint/start.sh index e30098dd..eefe8b83 100755 --- a/scripts/tendermint/start.sh +++ b/scripts/tendermint/start.sh @@ -42,8 +42,8 @@ docker run --rm \ echo "Tendermint running and logging into $LOGFILE" -# Give REST server some time to come alive. No idea why this helps. Needed for CI. if [ -n "${CI:-}" ]; then + # Give process some time to come alive. No idea why this helps. Needed for CI. sleep 0.5 # Follow the logs in CI's background job diff --git a/scripts/wasmd/start.sh b/scripts/wasmd/start.sh index 320cc3f8..a5cbe716 100755 --- a/scripts/wasmd/start.sh +++ b/scripts/wasmd/start.sh @@ -55,8 +55,8 @@ docker exec "$CONTAINER_NAME" \ echo "rest server running on http://localhost:$LCD_API_PORT_HOST and logging into $REST_SERVER_LOGFILE" -# Give REST server some time to come alive. No idea why this helps. Needed for CI. if [ -n "${CI:-}" ]; then + # Give process some time to come alive. No idea why this helps. Needed for CI. sleep 0.5 # Follow the logs in CI's background job