Skip to content

Commit

Permalink
fix: add fee amt to the expected amt
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Dec 19, 2024
1 parent bf840dc commit e974b8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/btc_rewards_distribution_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,9 @@ func CheckWithdrawReward(
require.True(t, ok)
require.True(t, delRewardGauge.Coins.IsAllPositive())

require.Equal(t, delBalanceAfterWithdraw.Sub(txResp.AuthInfo.Fee.Amount...).String(), delBalanceBeforeWithdraw.Add(delRewardGauge.WithdrawnCoins...).String())
actualAmt := delBalanceAfterWithdraw.String()
expectedAmt := delBalanceBeforeWithdraw.Add(delRewardGauge.WithdrawnCoins...).Add(txResp.AuthInfo.Fee.Amount...).String()
require.Equal(t, expectedAmt, actualAmt)
}

func SendCovenantSigsToPendingDel(
Expand Down

0 comments on commit e974b8b

Please sign in to comment.