From 3cb1f47d536b13c4e4384c4972445d241056cd2c Mon Sep 17 00:00:00 2001 From: Shawn <44221603+smarshall-spitzbart@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:41:25 -0700 Subject: [PATCH] height assertion --- tests/integration/slashing.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/slashing.go b/tests/integration/slashing.go index 2feedf2fff..4058494974 100644 --- a/tests/integration/slashing.go +++ b/tests/integration/slashing.go @@ -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.