Skip to content

Commit

Permalink
fix(e2e): correctly assign trusted height and latest height vars to b…
Browse files Browse the repository at this point in the history
…e scoped correctly for later usage in misbehaviour test
  • Loading branch information
damiannolan committed Mar 13, 2024
1 parent ba429b9 commit 0329451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/core/02-client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (s *ClientTestSuite) TestClient_Update_Misbehaviour() {
tmClientState, ok := clientState.(*ibctm.ClientState)
s.Require().True(ok)

trustedHeight := tmClientState.LatestHeight
trustedHeight = tmClientState.LatestHeight
s.Require().True(trustedHeight.GT(clienttypes.ZeroHeight()))
})

Expand All @@ -377,7 +377,7 @@ func (s *ClientTestSuite) TestClient_Update_Misbehaviour() {
tmClientState, ok := clientState.(*ibctm.ClientState)
s.Require().True(ok)

latestHeight := tmClientState.LatestHeight
latestHeight = tmClientState.LatestHeight
s.Require().True(latestHeight.GT(clienttypes.ZeroHeight()))
})

Expand Down

0 comments on commit 0329451

Please sign in to comment.