Skip to content

Commit

Permalink
test improve var names
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Mar 27, 2024
1 parent a8aab20 commit e47ed29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions x/delayedack/keeper/invariants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (

func (suite *DelayedAckTestSuite) TestInvariants() {
suite.SetupTest()
initialheight := int64(10)
suite.Ctx = suite.Ctx.WithBlockHeight(initialheight)
initialHeight := int64(10)
suite.Ctx = suite.Ctx.WithBlockHeight(initialHeight)

numOfRollapps := 10
numOfStates := 10
Expand Down Expand Up @@ -44,12 +44,12 @@ func (suite *DelayedAckTestSuite) TestInvariants() {
suite.Require().NoError(err)
for k := uint64(1); k <= numOfBlocks; k++ {
// calculating a different proof height incrementing a block height for each new packet
proofheight := rollappBlocks[rollapp] + k
proofHeight := rollappBlocks[rollapp] + k
rollappPacket := &commontypes.RollappPacket{
RollappId: rollapp,
Packet: getNewTestPacket(sequence),
Status: commontypes.Status_PENDING,
ProofHeight: proofheight,
ProofHeight: proofHeight,
}
err := suite.App.DelayedAckKeeper.SetRollappPacket(suite.Ctx, *rollappPacket)
suite.Require().NoError(err)
Expand All @@ -74,8 +74,8 @@ func (suite *DelayedAckTestSuite) TestInvariants() {
}

// check invariant
msg, bool := keeper.AllInvariants(suite.App.DelayedAckKeeper)(suite.Ctx)
suite.Require().False(bool, msg)
msg, fails := keeper.AllInvariants(suite.App.DelayedAckKeeper)(suite.Ctx)
suite.Require().False(fails, msg)
}

func (suite *DelayedAckTestSuite) TestRollappPacketsCasesInvariant() {
Expand Down

0 comments on commit e47ed29

Please sign in to comment.