Skip to content

Commit

Permalink
fix metoken e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
kosegor committed Sep 21, 2023
1 parent 6b1cb4d commit 9fadd8a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/e2e/e2e_metoken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ func (s *E2ETest) getMetokenIndex(denom string) metoken.Index {
func (s *E2ETest) executeSwap(umeeAddr string, asset sdk.Coin, meTokenDenom string) {
s.Require().Eventually(
func() bool {
err := s.TxMetokenSwap(umeeAddr, asset, meTokenDenom)
return err != nil
return s.TxMetokenSwap(umeeAddr, asset, meTokenDenom) == nil
},
30*time.Second,
500*time.Millisecond,
Expand All @@ -231,8 +230,7 @@ func (s *E2ETest) executeSwap(umeeAddr string, asset sdk.Coin, meTokenDenom stri
func (s *E2ETest) executeRedeemSuccess(umeeAddr string, meToken sdk.Coin, assetDenom string) {
s.Require().Eventually(
func() bool {
err := s.TxMetokenRedeem(umeeAddr, meToken, assetDenom)
return err != nil
return s.TxMetokenRedeem(umeeAddr, meToken, assetDenom) == nil
},
30*time.Second,
500*time.Millisecond,
Expand Down

0 comments on commit 9fadd8a

Please sign in to comment.