Skip to content

Commit

Permalink
fixed UT
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin committed Nov 10, 2024
1 parent 9a482ba commit c25d2bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/sequencer/keeper/msg_server_kick_proposer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ import (
)

func (s *SequencerTestSuite) TestKickProposerBasicFlow() {
s.App.RollappKeeper.SetHooks(nil)
ra := s.createRollapp()
seqAlice := s.createSequencerWithBond(s.Ctx, ra.RollappId, alice, bond)
s.Require().True(s.k().IsProposer(s.Ctx, seqAlice))

_, err := s.PostStateUpdate(s.Ctx, ra.RollappId, seqAlice.Address, 1, 10)
s.Require().NoError(err)

// bob tries to kick alice but he doesn't have a sequencer
m := &types.MsgKickProposer{Creator: pkAddr(bob)}
_, err := s.msgServer.KickProposer(s.Ctx, m)
_, err = s.msgServer.KickProposer(s.Ctx, m)
utest.IsErr(s.Require(), err, gerrc.ErrFailedPrecondition)

// bob creates a sequencer
Expand Down

0 comments on commit c25d2bc

Please sign in to comment.