From 181541787eea6de45f66566eb547a7c739901434 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Sat, 21 Dec 2024 18:20:25 -0300 Subject: [PATCH] fix anvil shutdown --- scripts/run-serial-e2e.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/run-serial-e2e.sh b/scripts/run-serial-e2e.sh index bc0d6a77658..84bcbd3c85d 100755 --- a/scripts/run-serial-e2e.sh +++ b/scripts/run-serial-e2e.sh @@ -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