Skip to content

Commit

Permalink
Introduce pauses
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-romero committed Feb 18, 2025
1 parent 24367bd commit 5013df2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions scripts/mitm/test_l1_failures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ TEST_DURATION=180 # amount of time to test each failure
TIMEOUT=240 # Time to wait for everything to settle after the failure
CHECK_SC_VERIFICATION=0 # Disable when using soverign chain
TEST_COMPONENT=agglayer # Set if you want to test a single component
CLASSES="ArbirtraryHTMLResponse" # Set if you want to test a specific error class
CLASSES="HttpErrorResponse" # Set if you want to test a specific error class

# Cleanup everything when done
CLEANUP=0

# Just in case docker/stack was already running
docker stop $L1_PROXY_NAME > /dev/null 2>&1
Expand Down Expand Up @@ -145,11 +143,10 @@ for class in $CLASSES; do
fi
done

read -p "Press any key to cleanup everything.."
# Clean UP
if [ $CLEANUP -eq 1 ]; then
echo "Cleaning up..."
kurtosis enclave stop $ENCLAVE_NAME
kurtosis enclave rm $ENCLAVE_NAME
docker stop $L1_PROXY_NAME
rm remove_me_later.py
fi
echo "Cleaning up..."
kurtosis enclave stop $ENCLAVE_NAME
kurtosis enclave rm $ENCLAVE_NAME
docker stop $L1_PROXY_NAME
rm remove_me_later.py

0 comments on commit 5013df2

Please sign in to comment.