defeat race condition

Signed-off-by: RJ Catalano <rj@monax.io>
This commit is contained in:
RJ Catalano
2017-02-09 11:31:02 -06:00
parent d76d9d4169
commit d9e7af939c
+2 -2
View File
@@ -58,7 +58,7 @@ $ETH_PATH --test -d /tmp/test &
# is available and is ready for the unit-tests to start talking to it.
while [ ! -S /tmp/test/geth.ipc ]; do sleep 2; done
echo "--> IPC available."
sleep 2
# And then run the Solidity unit-tests (once without optimization, once with),
# pointing to that IPC endpoint.
echo "--> Running tests without optimizer..."
@@ -69,4 +69,4 @@ ERROR_CODE=$?
pkill eth || true
sleep 4
pgrep eth && pkill -9 eth || true
exit $ERROR_CODE
exit $ERROR_CODE