fix(x/staking): add missing error check in simulation operations test (#25421)

Co-authored-by: Alex | Cosmos Labs <alex@cosmoslabs.io>
This commit is contained in:
maksneprik
2025-10-08 15:23:09 +00:00
committed by GitHub
co-authored by Alex | Cosmos Labs
parent ceea5c823d
commit b0854ae429
+2 -2
View File
@@ -147,8 +147,8 @@ func (s *SimTestSuite) TestWeightedOperations() {
}
for i, w := range weightedOps {
operationMsg, _, _ := w.Op()(s.r, s.app.BaseApp, s.ctx, s.accounts, s.ctx.ChainID())
// require.NoError(t, err) // TODO check if it should be NoError
operationMsg, _, err := w.Op()(s.r, s.app.BaseApp, s.ctx, s.accounts, s.ctx.ChainID())
s.Require().NoError(err)
// the following checks are very much dependent from the ordering of the output given
// by WeightedOperations. if the ordering in WeightedOperations changes some tests