fix(test): avoid panic of SetStreamingManager() on sealed BaseApp (backport #24109) (#24110)

Co-authored-by: mmsqe <mavis@crypto.com>
This commit is contained in:
mergify[bot] 2025-03-24 10:36:26 -04:00 committed by GitHub
parent f0bc9af678
commit ddce50f42e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2509,11 +2509,12 @@ func TestABCI_Proposal_FailReCheckTx(t *testing.T) {
}
func TestFinalizeBlockDeferResponseHandle(t *testing.T) {
suite := NewBaseAppSuite(t, baseapp.SetHaltHeight(1))
suite.baseApp.SetStreamingManager(storetypes.StreamingManager{
ABCIListeners: []storetypes.ABCIListener{
&mockABCIListener{},
},
suite := NewBaseAppSuite(t, baseapp.SetHaltHeight(1), func(ba *baseapp.BaseApp) {
ba.SetStreamingManager(storetypes.StreamingManager{
ABCIListeners: []storetypes.ABCIListener{
&mockABCIListener{},
},
})
})
res, err := suite.baseApp.FinalizeBlock(&abci.RequestFinalizeBlock{