Skip to content

Commit

Permalink
fix anvil shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 committed Dec 21, 2024
1 parent 86b7488 commit 1815417
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/run-serial-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ for test_file in ./e2e/serial/*.ts; do
# 4) Kill the Anvil process
echo "Killing Anvil (PID: $ANVIL_PID)"
kill "$ANVIL_PID"
# kill any other processes using port 8545
kill $(lsof -t -i:8545)

# 5) Wait for Anvil to truly exit
wait "$ANVIL_PID" 2>/dev/null || true

# 5.1) Remove the Anvil log file
# 5) Remove the Anvil log file
rm -rf anvil.log

# 6) Decide what to do if Detox failed or succeeded
Expand Down

0 comments on commit 1815417

Please sign in to comment.