Skip to content

Commit

Permalink
lint: check err return in test
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
damiannolan and coderabbitai[bot] authored Apr 2, 2024
1 parent fc4d349 commit 437adda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/light-clients/07-tendermint/consensus_host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func (suite *TendermintTestSuite) TestGetSelfConsensusState() {
malleate: func() {
height = clienttypes.NewHeight(1, uint64(suite.chainA.GetContext().BlockHeight())-1)

suite.chainA.GetSimApp().StakingKeeper.DeleteHistoricalInfo(suite.chainA.GetContext(), int64(height.GetRevisionHeight()))
err := suite.chainA.GetSimApp().StakingKeeper.DeleteHistoricalInfo(suite.chainA.GetContext(), int64(height.GetRevisionHeight()))
suite.Require().NoError(err)
},
expError: stakingtypes.ErrNoHistoricalInfo,
},
Expand Down

0 comments on commit 437adda

Please sign in to comment.