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

This commit is contained in:
Jochen Brüggemann
2019-03-17 20:59:29 +01:00
committed by Francisco Giordano
parent 40d2eb3007
commit ab14debb08

View File

@ -46,7 +46,13 @@ start_ganache() {
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