Commit ab14debb by Jochen Brüggemann Committed by Francisco Giordano

Make waiting for ganache to launch more robust. (#1683)

parent 40d2eb30
...@@ -46,7 +46,13 @@ start_ganache() { ...@@ -46,7 +46,13 @@ start_ganache() {
ganache_pid=$! ganache_pid=$!
sleep 1 echo "Waiting for ganache to launch on port "$ganache_port"..."
while ! ganache_running; do
sleep 0.1 # wait for 1/10 of the second before check again
done
echo "Ganache launched!"
} }
if ganache_running; then if ganache_running; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment