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

pull/1686/head
Jochen Brüggemann 6 years ago committed by Francisco Giordano
parent 40d2eb3007
commit ab14debb08
  1. 8
      scripts/test.sh

@ -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

Loading…
Cancel
Save