Skip to content

Commit

Permalink
reanble zeta test
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed May 22, 2024
1 parent 36ebf86 commit 00b87a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion cmd/zetae2e/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func localE2ETest(cmd *cobra.Command, _ []string) {
testHeader := !light && !skipHeaderProof

eg.Go(erc20TestRoutine(conf, deployerRunner, verbose, erc20Tests...))
//eg.Go(zetaTestRoutine(conf, deployerRunner, verbose, zetaTests...))
eg.Go(zetaTestRoutine(conf, deployerRunner, verbose, zetaTests...))
eg.Go(zevmMPTestRoutine(conf, deployerRunner, verbose, zevmMPTests...))
eg.Go(bitcoinTestRoutine(conf, deployerRunner, verbose, !skipBitcoinSetup, testHeader, bitcoinTests...))
eg.Go(ethereumTestRoutine(conf, deployerRunner, verbose, testHeader, ethereumTests...))
Expand Down
17 changes: 0 additions & 17 deletions e2e/e2etests/test_message_passing_zevm_to_evm_revert_fail.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ func TestMessagePassingZEVMtoEVMRevertFail(r *runner.E2ERunner, args []string) {
}

// Get previous balances to check funds are not minted anywhere when aborted
previousBalanceEVM, err := r.ZetaEth.BalanceOf(&bind.CallOpts{}, r.EvmTestDAppAddr)
if err != nil {
panic(err)
}
previousBalanceZEVM, err := r.WZeta.BalanceOf(&bind.CallOpts{}, testDappNoRevertAddr)
if err != nil {
panic(err)
Expand All @@ -102,19 +98,6 @@ func TestMessagePassingZEVMtoEVMRevertFail(r *runner.E2ERunner, args []string) {
panic("expected cctx to be reverted")
}

// Check ZETA balance on EVM TestDApp and check new balance is previous balance
newBalanceEVM, err := r.ZetaEth.BalanceOf(&bind.CallOpts{}, r.EvmTestDAppAddr)
if err != nil {
panic(err)
}
if newBalanceEVM.Cmp(previousBalanceEVM) != 0 {
panic(fmt.Sprintf(
"expected new balance to be %s, got %s",
previousBalanceEVM.String(),
newBalanceEVM.String()),
)
}

// Check the funds are not minted to the contract as the cctx has been aborted
newBalanceZEVM, err := r.WZeta.BalanceOf(&bind.CallOpts{}, testDappNoRevertAddr)
if err != nil {
Expand Down

0 comments on commit 00b87a4

Please sign in to comment.