chore: lint v2 (#24118)

This commit is contained in:
Alex | Interchain Labs
2025-03-25 15:57:24 +00:00
committed by GitHub
parent 9acd7716dd
commit b7a20b81f6
87 changed files with 298 additions and 288 deletions
@@ -26,7 +26,7 @@ func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
&accountKeeper)
assert.NilError(t, err)
ctx := app.BaseApp.NewContext(false)
ctx := app.NewContext(false)
acc := accountKeeper.GetAccount(ctx, authtypes.NewModuleAddress(types.ModuleName))
assert.Assert(t, acc != nil)
}
@@ -293,8 +293,8 @@ func TestHandleDoubleSign_TooOld(t *testing.T) {
}},
})
assert.NilError(t, f.app.BaseApp.StoreConsensusParams(ctx, *simtestutil.DefaultConsensusParams))
cp := f.app.BaseApp.GetConsensusParams(ctx)
assert.NilError(t, f.app.StoreConsensusParams(ctx, *simtestutil.DefaultConsensusParams))
cp := f.app.GetConsensusParams(ctx)
ctx = ctx.WithCometInfo(nci)
ctx = ctx.WithConsensusParams(cp)
+3 -3
View File
@@ -72,7 +72,7 @@ func TestImportExportQueues(t *testing.T) {
)
assert.NilError(t, err)
ctx := s1.app.BaseApp.NewContext(false)
ctx := s1.app.NewContext(false)
addrs := simtestutil.AddTestAddrs(s1.BankKeeper, s1.StakingKeeper, ctx, 1, valTokens)
_, err = s1.app.FinalizeBlock(&abci.RequestFinalizeBlock{
@@ -80,7 +80,7 @@ func TestImportExportQueues(t *testing.T) {
})
assert.NilError(t, err)
ctx = s1.app.BaseApp.NewContext(false)
ctx = s1.app.NewContext(false)
// Create two proposals, put the second into the voting period
proposal1, err := s1.GovKeeper.SubmitProposal(ctx, []sdk.Msg{mkTestLegacyContent(t)}, "", "test", "description", addrs[0], false)
assert.NilError(t, err)
@@ -158,7 +158,7 @@ func TestImportExportQueues(t *testing.T) {
})
assert.NilError(t, err)
ctx2 := s2.app.BaseApp.NewContext(false)
ctx2 := s2.app.NewContext(false)
params, err = s2.GovKeeper.Params.Get(ctx2)
assert.NilError(t, err)
+1 -1
View File
@@ -36,7 +36,7 @@ func TestItCreatesModuleAccountOnInitBlock(t *testing.T) {
)
assert.NilError(t, err)
ctx := app.BaseApp.NewContext(false)
ctx := app.NewContext(false)
acc := accountKeeper.GetAccount(ctx, authtypes.NewModuleAddress(types.ModuleName))
assert.Assert(t, acc != nil)
}
+2 -2
View File
@@ -56,9 +56,9 @@ func initFixture(t assert.TestingT) *fixture {
)
assert.NilError(t, err)
f.ctx = app.BaseApp.NewContext(false)
f.ctx = app.NewContext(false)
queryHelper := &baseapp.QueryServiceTestHelper{
GRPCQueryRouter: app.BaseApp.GRPCQueryRouter(),
GRPCQueryRouter: app.GRPCQueryRouter(),
Ctx: f.ctx,
}
f.appQueryClient = appv1alpha1.NewQueryClient(queryHelper)