Skip to content

Commit ac31f0b

Browse files
authored
tests: fix testCatchpointAfterStakeLookupTxns (#6363)
1 parent 6147ebf commit ac31f0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ledger/catchpointfilewriter_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,12 @@ assert
11991199
require.Empty(t, vb.Block().AbsentParticipationAccounts)
12001200
}
12011201

1202+
require.Eventually(t, func() bool {
1203+
gr, _ := dl.generator.LatestCommitted()
1204+
vr, _ := dl.validator.LatestCommitted()
1205+
return gr == vr
1206+
}, 1*time.Second, 50*time.Millisecond)
1207+
12021208
// wait for tracker to flush
12031209
testCatchpointFlushRound(dl.generator)
12041210
testCatchpointFlushRound(dl.validator)

0 commit comments

Comments
 (0)