Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new command to run admin tests after upgrade
Browse files Browse the repository at this point in the history
kingpinXD committed Jul 9, 2024
1 parent f45a56b commit 6190499
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 && \
4 changes: 2 additions & 2 deletions e2e/e2etests/test_rate_limiter.go
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 6190499

Please sign in to comment.