Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Mar 28, 2024
1 parent c2c7e84 commit d9cd55f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/emissions/keeper/block_rewards_components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ func TestKeeper_GetFixedBlockRewards(t *testing.T) {
k, _, _, _ := keepertest.EmissionsKeeper(t)
fixedBlockRewards, err := k.GetFixedBlockRewards()
require.NoError(t, err)
expected, err := emissionskeeper.CalculateFixedValidatorRewards(emissionstypes.AvgBlockTime)
require.NoError(t, err)
require.Equal(t, expected, fixedBlockRewards)
require.Equal(t, emissionstypes.BlockReward, fixedBlockRewards)
}

func TestKeeper_GetBlockRewardComponent(t *testing.T) {
Expand Down Expand Up @@ -106,6 +104,7 @@ func TestKeeper_GetBlockRewardComponent(t *testing.T) {
require.Equal(t, sdk.ZeroDec(), bondFactor)
// non 0 value returned
require.NotEqual(t, sdk.ZeroDec(), durationFactor)
require.Positive(t, durationFactor.BigInt().Int64())
})
}

Expand Down

0 comments on commit d9cd55f

Please sign in to comment.