Skip to content

Commit

Permalink
Do not rely on global ganache version, use updated package
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed Nov 21, 2023
1 parent 2cf929d commit 5e86bec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
# Postgresql and ganache-cli must be running for the tests

ps aux | grep ganache-cli | grep -v grep > /dev/null
ps aux | grep ganache | grep -v grep > /dev/null
if [ $? -eq 1 ]; then
echo 'Running Ganache-Cli'
ganache-cli --defaultBalanceEther 10000 --gasLimit 10000000 -a 30 --chain.chainId 1337 --chain.networkId 1337 -d > /dev/null &
npx ganache@7.9.1 --defaultBalanceEther 10000 --gasLimit 10000000 -a 30 --chain.chainId 1337 --chain.networkId 1337 -d > /dev/null &
GANACHE_PID=$!
sleep 3
sleep 5
fi

docker ps | grep '\->5432' > /dev/null
Expand Down

0 comments on commit 5e86bec

Please sign in to comment.