From 2a37b09cf6a96a72660533da80895322bd0baa50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Tue, 12 Mar 2019 17:17:33 -0300 Subject: [PATCH] Improve test script. (#1675) --- scripts/test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index 1d81379f4..1e18eaf83 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -41,10 +41,12 @@ start_ganache() { if [ "$SOLIDITY_COVERAGE" = true ]; then node_modules/.bin/testrpc-sc --gasLimit 0xfffffffffff --port "$ganache_port" "${accounts[@]}" > /dev/null & else - node_modules/.bin/ganache-cli --gasLimit 0xfffffffffff "${accounts[@]}" > /dev/null & + node_modules/.bin/ganache-cli --gasLimit 0xfffffffffff --port "$ganache_port" "${accounts[@]}" > /dev/null & fi ganache_pid=$! + + sleep 1 } if ganache_running; then