,,
This commit is contained in:
parent
0c75d3b4c2
commit
3dab48f58b
1 changed files with 1141 additions and 1376 deletions
|
|
@ -75,7 +75,7 @@ test("stale content acknowledgements contain metadata without the excluded paylo
|
|||
|
||||
test("highly fragmented local edits use a snapshot within the server operation budget", async () => {
|
||||
const { fixture } = await import("./sync-fixture");
|
||||
const { toStoredSnapshot } = await import("../sync-client/src/snapshot");
|
||||
const { hashSnapshot } = await import("../sync-client/src/snapshot");
|
||||
const f = await fixture({});
|
||||
f.contentCache.resize(1024 * 1024);
|
||||
const original = Array.from({ length: 12_000 }, (_, i) => `word${i}`).join(
|
||||
|
|
@ -95,7 +95,7 @@ test("highly fragmented local edits use a snapshot within the server operation b
|
|||
const request = await syncer.pushContent(
|
||||
"a.md",
|
||||
1,
|
||||
await toStoredSnapshot({ content: bytes(edited) })
|
||||
await hashSnapshot({ content: bytes(edited) })
|
||||
);
|
||||
assert.equal(request.type, "Snapshot");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue