From 891e4d189b20ef71272454093c075dd19d54e0b7 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Wed, 20 Sep 2023 09:36:50 +0200 Subject: [PATCH] fix --- tests/e2e/e2e_bank_test.go | 10 ++++++---- tests/e2e/e2e_exec_test.go | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/e2e/e2e_bank_test.go b/tests/e2e/e2e_bank_test.go index 2f9e050af2c..2abae83599d 100644 --- a/tests/e2e/e2e_bank_test.go +++ b/tests/e2e/e2e_bank_test.go @@ -28,15 +28,16 @@ func (s *IntegrationTestSuite) testBankTokenTransfer() { afterBobUAtomBalance, afterCharlieUAtomBalance sdk.Coin + // get balances of sender and recipient accounts s.Require().Eventually( func() bool { beforeAliceUAtomBalance, err = getSpecificBalance(chainEndpoint, alice.String(), uatomDenom) s.Require().NoError(err) - beforeBobUAtomBalance, err = getSpecificBalance(chainEndpoint, alice.String(), uatomDenom) + beforeBobUAtomBalance, err = getSpecificBalance(chainEndpoint, bob.String(), uatomDenom) s.Require().NoError(err) - beforeCharlieUAtomBalance, err = getSpecificBalance(chainEndpoint, alice.String(), uatomDenom) + beforeCharlieUAtomBalance, err = getSpecificBalance(chainEndpoint, charlie.String(), uatomDenom) s.Require().NoError(err) return beforeAliceUAtomBalance.IsValid() && beforeBobUAtomBalance.IsValid() && beforeCharlieUAtomBalance.IsValid() @@ -48,6 +49,7 @@ func (s *IntegrationTestSuite) testBankTokenTransfer() { // alice sends tokens to bob s.execBankSend(s.chainA, valIdx, alice.String(), bob.String(), tokenAmount.String(), standardFees.String(), false) + // check that the transfer was successful s.Require().Eventually( func() bool { afterAliceUAtomBalance, err = getSpecificBalance(chainEndpoint, alice.String(), uatomDenom) @@ -61,7 +63,7 @@ func (s *IntegrationTestSuite) testBankTokenTransfer() { return decremented && incremented }, - time.Minute, + 10*time.Second, 5*time.Second, ) @@ -89,7 +91,7 @@ func (s *IntegrationTestSuite) testBankTokenTransfer() { return decremented && incremented }, - time.Minute, + 10*time.Second, 5*time.Second, ) }) diff --git a/tests/e2e/e2e_exec_test.go b/tests/e2e/e2e_exec_test.go index b62ecafce67..4a599dedf38 100644 --- a/tests/e2e/e2e_exec_test.go +++ b/tests/e2e/e2e_exec_test.go @@ -548,7 +548,7 @@ func (s *IntegrationTestSuite) execCancelUnbondingDelegation(c *chain, valIdx in s.T().Logf("%s successfully undelegated %s to %s", delegatorAddr, amount, valOperAddress) } -// TODO rename to execDelegate for consistency +// TODO rename to execRedelegate for consistency func (s *IntegrationTestSuite) executeRedelegate(c *chain, valIdx int, amount, originalValOperAddress, newValOperAddress, delegatorAddr, home, delegateFees string, ) {