Skip to content

Commit

Permalink
fix performance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Mar 6, 2024
1 parent e00e34a commit a1c1232
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions cmd/zetae2e/local/performance.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,16 @@ func ethereumDepositPerformanceRoutine(
r.Logger.Print("🏃 starting Ethereum deposit performance tests")
startTime := time.Now()

if err := r.RunE2ETestsFromNames(
tests, err := r.GetE2ETestsToRunByName(
e2etests.AllE2ETests,
e2etests.TestStressEtherDepositName,
); err != nil {
return fmt.Errorf("thereum deposit performance test failed: %v", err)
)
if err != nil {
return fmt.Errorf("ethereum deposit performance test failed: %v", err)
}

if err := r.RunE2ETests(tests); err != nil {
return fmt.Errorf("misc tests failed: %v", err)
}

r.Logger.Print("🍾 Ethereum deposit performance test completed in %s", time.Since(startTime).String())
Expand Down Expand Up @@ -101,11 +106,16 @@ func ethereumWithdrawPerformanceRoutine(
txEtherDeposit := r.DepositEther(false)
r.WaitForMinedCCTX(txEtherDeposit)

if err := r.RunE2ETestsFromNames(
tests, err := r.GetE2ETestsToRunByName(
e2etests.AllE2ETests,
e2etests.TestStressEtherWithdrawName,
); err != nil {
return fmt.Errorf("thereum withdraw performance test failed: %v", err)
)
if err != nil {
return fmt.Errorf("ethereum withdraw performance test failed: %v", err)
}

if err := r.RunE2ETests(tests); err != nil {
return fmt.Errorf("misc tests failed: %v", err)
}

r.Logger.Print("🍾 Ethereum withdraw performance test completed in %s", time.Since(startTime).String())
Expand Down

0 comments on commit a1c1232

Please sign in to comment.