From 73fc221b6b4307dacd7536f70389088f5ef69eb8 Mon Sep 17 00:00:00 2001 From: dudong2 Date: Tue, 10 Jan 2023 11:13:56 +0900 Subject: [PATCH] test: fix tests --- baseapp/block_gas_test.go | 2 +- simapp/app.go | 2 ++ x/auth/ante/ante_test.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/baseapp/block_gas_test.go b/baseapp/block_gas_test.go index c03f7128b3..cdecc72fd2 100644 --- a/baseapp/block_gas_test.go +++ b/baseapp/block_gas_test.go @@ -101,7 +101,7 @@ func TestBaseApp_BlockGas(t *testing.T) { txBuilder.SetFeeAmount(feeAmount) txBuilder.SetGasLimit(txtypes.MaxGasWanted) // tx validation checks that gasLimit can't be bigger than this - privs, accNums, accSeqs := []cryptotypes.PrivKey{priv1}, []uint64{7}, []uint64{0} + privs, accNums, accSeqs := []cryptotypes.PrivKey{priv1}, []uint64{6}, []uint64{0} _, txBytes, err := createTestTx(encCfg.TxConfig, txBuilder, privs, accNums, accSeqs, ctx.ChainID()) require.NoError(t, err) diff --git a/simapp/app.go b/simapp/app.go index 0dbb50916d..b50131bfd2 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -323,6 +323,8 @@ func NewSimApp( stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(), app.SlashingKeeper.Hooks()), ) + app.AuthzKeeper = authzkeeper.NewKeeper(keys[authzkeeper.StoreKey], appCodec, app.BaseApp.MsgServiceRouter()) + // register the proposal types govRouter := govtypes.NewRouter() govRouter.AddRoute(govtypes.RouterKey, govtypes.ProposalHandler). diff --git a/x/auth/ante/ante_test.go b/x/auth/ante/ante_test.go index 82b818c8e5..ec4beaffcb 100644 --- a/x/auth/ante/ante_test.go +++ b/x/auth/ante/ante_test.go @@ -480,7 +480,7 @@ func (suite *AnteTestSuite) TestAnteHandlerFees() { { "signer as enough funds, should pass", func() { - accNums = []uint64{7} + accNums = []uint64{6} modAcc := suite.app.AccountKeeper.GetModuleAccount(suite.ctx, types.FeeCollectorName) suite.Require().True(suite.app.BankKeeper.GetAllBalances(suite.ctx, modAcc.GetAddress()).Empty())