Skip to content

Commit

Permalink
remove kurtosis check if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelArtists committed Feb 5, 2025
1 parent b5dacdc commit 87eaa88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions test-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ if [[ "$DEPLOY_INFRA" == "true" ]]; then
else
echo "⏩ Skipping infrastructure deployment. Ensure the required services are already running!"
fi
if [[ "$L2_RPC_URL" == "" ]]; then
kurtosis_l2_rpc_url="$(kurtosis port print cdk cdk-erigon-rpc-001 rpc)"

export L2_RPC_URL="${L2_RPC_URL:-$l2_rpc_url}"

# Check if L2_RPC_URL is empty or not set
if [[ -z "$L2_RPC_URL" ]]; then
echo "Error: L2_RPC_URL is a required environment variable. Please update the .env file."
exit 1 # Exit the script with an error code
fi
export L2_RPC_URL="${L2_RPC_URL:-$kurtosis_l2_rpc_url}"

# 🔍 Set BATS test files
echo "🚀 Running tests with tags: $FILTER_TAGS"
Expand Down
2 changes: 1 addition & 1 deletion tests/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
KURTOSIS_ENCLAVE=cdk
TMP_CDK_FOLDER=tmp/cdk
USE_L1_GAS_TOKEN_CONTRACT=true
L2_RPC_URL=""
L2_RPC_URL="http://127.0.0.1:53015"
L2_SENDER_PRIVATE_KEY=0x12d7de8621a77640c9241b2595ba78ce443d05e94090365ab3bb5e19df82c625

0 comments on commit 87eaa88

Please sign in to comment.