,,
This commit is contained in:
parent
0c75d3b4c2
commit
3dab48f58b
1 changed files with 1141 additions and 1376 deletions
|
|
@ -9,7 +9,6 @@ for (const mode of [
|
|||
"behind",
|
||||
"dirty",
|
||||
"pending",
|
||||
"legacy-state",
|
||||
...["before:save", "durable:save"].flatMap((boundary) =>
|
||||
[1, 2, 3, 4, 5].map((ordinal) => `${boundary}:${ordinal}`)
|
||||
)
|
||||
|
|
@ -124,16 +123,6 @@ for (const mode of [
|
|||
await f.reopenClient();
|
||||
await f.client.start();
|
||||
}
|
||||
if (mode === "legacy-state") {
|
||||
await f.client.destroy();
|
||||
const stored = f.store.snapshot() as ReturnType<
|
||||
typeof f.store.snapshot
|
||||
> & { historyCheckpoint?: unknown };
|
||||
delete stored.historyCheckpoint;
|
||||
await f.store.save(stored);
|
||||
await f.reopenClient();
|
||||
await f.client.start();
|
||||
}
|
||||
await f.client.setSetting("isSyncEnabled", true);
|
||||
const actual = Buffer.from(
|
||||
(await f.disk.read("a.md"))!.content
|
||||
|
|
|
|||
Loading…
Reference in a new issue