Skip to content

Commit

Permalink
fixing testcase to be compatible with this change cosmos/cosmos-sdk#9651
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Oct 4, 2023
1 parent 1f98418 commit 9a8a4fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/rewards/mintbankkeeper/keeper_test.go
@@ -1,6 +1,7 @@
package mintbankkeeper_test

import (
"math"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -176,7 +177,7 @@ func TestMintBankKeeper(t *testing.T) {
}
require.True(t, found)

maxGasExpected := uint64(0)
maxGasExpected := uint64(math.MaxUint64)
if tc.blockMaxGas > 0 {
maxGasExpected = uint64(tc.blockMaxGas)
}
Expand All @@ -187,7 +188,7 @@ func TestMintBankKeeper(t *testing.T) {

// Check minimum consensus fee record
minConsFeeReceived, minConfFeeFound := keepers.RewardsKeeper.GetState().MinConsensusFee(ctx).GetFee()
if maxGasExpected == 0 || rewardsDiffExpected.IsZero() {
if maxGasExpected == uint64(math.MaxUint64) || rewardsDiffExpected.IsZero() {
assert.False(t, minConfFeeFound)
} else {
require.True(t, minConfFeeFound)
Expand Down

0 comments on commit 9a8a4fd

Please sign in to comment.