From 79b44a4e5dba4e99a1e2fddea8eed8922c8b5b4d Mon Sep 17 00:00:00 2001 From: Pavel Zbitskiy Date: Wed, 11 Jun 2025 11:12:23 -0400 Subject: [PATCH] tests: fix testCatchpointAfterStakeLookupTxns --- ledger/catchpointfilewriter_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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)