diff --git a/ledger/catchpointfilewriter_test.go b/ledger/catchpointfilewriter_test.go index 836ecce0af..1ff274c8fd 100644 --- a/ledger/catchpointfilewriter_test.go +++ b/ledger/catchpointfilewriter_test.go @@ -1199,6 +1199,12 @@ assert require.Empty(t, vb.Block().AbsentParticipationAccounts) } + require.Eventually(t, func() bool { + gr, _ := dl.generator.LatestCommitted() + vr, _ := dl.validator.LatestCommitted() + return gr == vr + }, 1*time.Second, 50*time.Millisecond) + // wait for tracker to flush testCatchpointFlushRound(dl.generator) testCatchpointFlushRound(dl.validator)