diff --git a/yarn-project/canary/scripts/run_tests b/yarn-project/canary/scripts/run_tests index dd330d5fef2e..03990a602da8 100755 --- a/yarn-project/canary/scripts/run_tests +++ b/yarn-project/canary/scripts/run_tests @@ -8,7 +8,8 @@ export TEST=$1 export IMAGE=${2:-canary} export COMPOSE_FILE=${3:-./scripts/docker-compose.yml} -if [ "$TEST" = "uniswap_trade_on_l1_from_l2.test.ts" ]; then +# if test name ends with uniswap_trade_on_l1_from_l2.test.ts, use the forked mainnet +if [[ "$TEST" = "*uniswap_trade_on_l1_from_l2.test.ts" ]]; then export FORK_URL=https://mainnet.infura.io/v3/9928b52099854248b3a096be07a6b23c export FORK_BLOCK_NUMBER=17514288 fi