Skip to content

Commit

Permalink
chore: add wait for a block before check finalized
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Jul 26, 2024
1 parent 37766b9 commit fa8d641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/btc_timestamping_phase2_hermes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa8d641

Please sign in to comment.