Skip to content

Commit

Permalink
chore: revert diffs in clienttypes/height_test
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Dec 16, 2024
1 parent e2b440f commit ddd8136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/02-client/types/height_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ func (suite *TypesTestSuite) TestSelfHeight() {
ctx := suite.chainA.GetContext()

// Test default revision
ctx = ctx.WithBlockHeight(10)
ctx = ctx.WithChainID("gaiamainnet")
ctx = ctx.WithBlockHeight(10)
height := types.GetSelfHeight(ctx)
suite.Require().Equal(types.NewHeight(0, 10), height, "default self height failed")

// Test successful revision format
ctx = ctx.WithBlockHeight(18)
ctx = ctx.WithChainID("gaiamainnet-3")
ctx = ctx.WithBlockHeight(18)
height = types.GetSelfHeight(ctx)
suite.Require().Equal(types.NewHeight(3, 18), height, "valid self height failed")
}

0 comments on commit ddd8136

Please sign in to comment.