From fa8d6415151dff974aaf82b873b7c21768f8a39c Mon Sep 17 00:00:00 2001 From: RafilxTenfen Date: Fri, 26 Jul 2024 10:23:55 -0300 Subject: [PATCH] chore: add wait for a block before check finalized --- test/e2e/btc_timestamping_phase2_hermes_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/btc_timestamping_phase2_hermes_test.go b/test/e2e/btc_timestamping_phase2_hermes_test.go index 1a9cf8945..6971be624 100644 --- a/test/e2e/btc_timestamping_phase2_hermes_test.go +++ b/test/e2e/btc_timestamping_phase2_hermes_test.go @@ -107,11 +107,13 @@ func (s *BTCTimestampingPhase2HermesTestSuite) Test1IbcCheckpointingPhase2Hermes // BTC timestamps in Babylon contract chainA.WaitUntilHeight(int64(endEpochNum*10 + 5)) babylonNode.FinalizeSealedEpochs(1, endEpochNum) + // wait another block to take effect + babylonNode.WaitForNextBlock() // ensure endEpochNum has been finalised endEpoch, err := babylonNode.QueryRawCheckpoint(endEpochNum) s.NoError(err) - s.Equal(endEpoch.Status, ct.Finalized) + s.Equal(endEpoch.Status.String(), ct.Finalized.String()) // there should be 3 IBC packets sent (with sequence number 1, 2, 3). // Thus, the next sequence number will eventually be 4