Skip to content

Commit 11343e6

Browse files
committed
fix test
1 parent c633194 commit 11343e6

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ require (
221221

222222
// Below are the long-lived replace of the Cosmos SDK
223223
replace (
224+
cosmossdk.io/api => ./api
224225
// use cosmos fork of keyring
225226
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
226227
// dgrijalva/jwt-go is deprecated and doesn't receive security updates.

tests/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ require (
219219

220220
// Below are the long-lived replace for tests.
221221
replace (
222+
cosmossdk.io/api => ../api
222223
// We always want to test against the latest version of the simapp.
223224
cosmossdk.io/simapp => ../simapp
224225
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0

x/mint/keeper/mint_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ func (s *MintFnTestSuite) TestDefaultMintFn_Success() {
8787
s.Require().NoError(err)
8888
expectedInflation := types.DefaultInflationCalculationFn(context.TODO(), minter, types.DefaultParams(), bondedRatio)
8989

90+
totalSupply := math.NewInt(1_000_000_000)
9091
// Set bank keeper expectations for minting and fee collection.
92+
s.bankKeeper.EXPECT().GetSupply(s.ctx, "stake").Return(sdk.NewCoin("stake", totalSupply)).Times(1)
9193
s.bankKeeper.EXPECT().MintCoins(s.ctx, types.ModuleName, expectedCoins).Return(nil).Times(1)
9294
s.bankKeeper.EXPECT().SendCoinsFromModuleToModule(s.ctx, types.ModuleName, authtypes.FeeCollectorName, expectedCoins).Return(nil).Times(1)
9395

0 commit comments

Comments
 (0)