From 619049910555d1a972e904aaf4c528d906f4b0ff Mon Sep 17 00:00:00 2001 From: Tanmay Date: Mon, 8 Jul 2024 21:05:26 -0400 Subject: [PATCH] add new command to run admin tests after upgrade --- Makefile | 9 +++++++++ e2e/e2etests/test_rate_limiter.go | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 177f064722..2eb5b49879 100644 --- a/Makefile +++ b/Makefile @@ -265,6 +265,7 @@ zetanode-upgrade: zetanode $(DOCKER) build -t orchestrator -f contrib/localnet/orchestrator/Dockerfile.fastbuild . .PHONY: zetanode-upgrade + start-upgrade-test: zetanode-upgrade @echo "--> Starting upgrade test" export LOCALNET_MODE=upgrade && \ @@ -277,6 +278,14 @@ start-upgrade-test-light: zetanode-upgrade export UPGRADE_HEIGHT=90 && \ cd contrib/localnet/ && $(DOCKER) compose --profile upgrade -f docker-compose.yml -f docker-compose-upgrade.yml up -d + +start-upgrade-test-admin: zetanode-upgrade + @echo "--> Starting admin upgrade test" + export LOCALNET_MODE=upgrade && \ + export UPGRADE_HEIGHT=90 && \ + export E2E_ARGS="--skip-regular --test-admin" && \ + cd contrib/localnet/ && $(DOCKER) compose --profile upgrade -f docker-compose.yml -f docker-compose-upgrade.yml up -d + start-upgrade-import-mainnet-test: zetanode-upgrade @echo "--> Starting import-data upgrade test" export LOCALNET_MODE=upgrade && \ diff --git a/e2e/e2etests/test_rate_limiter.go b/e2e/e2etests/test_rate_limiter.go index 739d7821dc..18403f5676 100644 --- a/e2e/e2etests/test_rate_limiter.go +++ b/e2e/e2etests/test_rate_limiter.go @@ -71,8 +71,8 @@ func TestRateLimiter(r *runner.E2ERunner, _ []string) { // https://github.com/zeta-chain/node/issues/2090 r.Logger.Print("rate limiter enabled") require.NoError(r, createAndWaitWithdraws(r, withdrawTypeZETA, zetaAmount)) - require.NoError(r, createAndWaitWithdraws(r, withdrawTypeZETA, ethAmount)) - require.NoError(r, createAndWaitWithdraws(r, withdrawTypeZETA, erc20Amount)) + require.NoError(r, createAndWaitWithdraws(r, withdrawTypeETH, ethAmount)) + require.NoError(r, createAndWaitWithdraws(r, withdrawTypeERC20, erc20Amount)) // Disable rate limiter r.Logger.Info("disabling rate limiter")