Skip to content

Commit

Permalink
fix coin assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Dec 1, 2024
1 parent e8ded4f commit 36ea807
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions integration/faucet/faucet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ func checkAccountBalance(ctx context.Context, t *testing.T, c cosmosclient.Clien
require.Len(t, resp.Balances, len(coins))
expectedCoins, err := sdk.ParseCoinsNormalized(strings.Join(coins, ","))
require.NoError(t, err)
require.True(t, resp.Balances.Equal(expectedCoins),
fmt.Sprintf("%s should be equals to %s", resp.Balances.String(), expectedCoins.String()),
expectedCoins = expectedCoins.Sort()
gotCoins := resp.Balances.Sort()
require.True(t, gotCoins.Equal(expectedCoins),
fmt.Sprintf("%s should be equals to %s", gotCoins.String(), expectedCoins.String()),
)
}

0 comments on commit 36ea807

Please sign in to comment.