Skip to content

Commit

Permalink
fix(e2e): increase performance test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jul 29, 2024
1 parent ca7f98d commit 97dde0b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ start-e2e-admin-test: zetanode
start-e2e-performance-test: zetanode
@echo "--> Starting e2e performance test"
export E2E_ARGS="--test-performance" && \
cd contrib/localnet/ && $(DOCKER_COMPOSE) -f docker-compose.yml up -d
cd contrib/localnet/ && $(DOCKER_COMPOSE) --profile stress -f docker-compose.yml up -d

start-e2e-import-mainnet-test: zetanode
@echo "--> Starting e2e import-data test"
Expand Down
7 changes: 7 additions & 0 deletions cmd/zetae2e/local/performance.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ func ethereumWithdrawPerformanceRoutine(
return err
}

if r.ReceiptTimeout == 0 {
r.ReceiptTimeout = 15 * time.Minute
}
if r.CctxTimeout == 0 {
r.CctxTimeout = 15 * time.Minute
}

r.Logger.Print("🏃 starting Ethereum withdraw performance tests")
startTime := time.Now()

Expand Down
4 changes: 4 additions & 0 deletions cmd/zetae2e/local/test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func initTestRunner(
return nil, err
}

// copy timeouts from deployer runner
testRunner.CctxTimeout = deployerRunner.ReceiptTimeout
testRunner.ReceiptTimeout = deployerRunner.ReceiptTimeout

// copy contracts from deployer runner
if err := testRunner.CopyAddressesFrom(deployerRunner); err != nil {
return nil, err
Expand Down

0 comments on commit 97dde0b

Please sign in to comment.