ninja - fix MutationJournalReplayTest.testReplayFlushed

This commit is contained in:
Blake Eggleston 2026-06-29 09:48:12 -07:00
parent f8eb131aa4
commit 982f3e3032
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ public class MutationJournalReplayTest
}
}
// Persisting needsReplay=false is deferred until LogStatePersister drains the
// queue. There's no persister in this test, so drain manually before replay.
journal.drainCleanup(journal.snapshotPendingClearReplay());
List<Mutation> replayed = new ArrayList<>();
journal.replay(new DeserializedRecordConsumer<ShortMutationId, Mutation>(MutationJournal.MutationSerializer.INSTANCE)
{