Skip to content

Commit

Permalink
height assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Sep 26, 2023
1 parent f0ffb47 commit 3cb1f47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/slashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ func (s *CCVTestSuite) TestRelayAndApplyDowntimePacket() {

// receive the slash packet on the provider chain. RecvPacket() calls the provider endblocker twice
packet := s.newPacketFromConsumer(slashPacket.GetData(), sequence, s.getFirstBundle().Path, timeoutHeight, timeoutTimestamp)
heightBefore := s.providerCtx().BlockHeight()
err = s.path.EndpointB.RecvPacket(packet)
heightAfter := s.providerCtx().BlockHeight()
s.Require().NoError(err)
s.Require().Equal(heightBefore+2, heightAfter)

// We've now advanced two blocks.

Expand Down

0 comments on commit 3cb1f47

Please sign in to comment.