This commit is contained in:
Andras Schmelczer 2026-09-27 08:29:17 +01:00
commit 3dab48f58b

View file

@ -6,7 +6,7 @@ import {
import { Settings } from "../sync-client/src/persistence/settings";
import { FileOperations } from "../sync-client/src/file-operations/file-operations";
import { Syncer } from "../sync-client/src/sync-operations/syncer";
import { toStoredSnapshot } from "../sync-client/src/snapshot";
import { hashSnapshot } from "../sync-client/src/snapshot";
import { Logger } from "../sync-client/src/tracing/logger";
import { SyncHistory } from "../sync-client/src/tracing/sync-history";
import { FixedSizeDocumentCache } from "../sync-client/src/utils/data-structures/fix-sized-cache";
@ -45,7 +45,7 @@ export async function fixture(
initial.documents[id] = {
observedHash: (
await toStoredSnapshot({ content: bytes(content) })
await hashSnapshot({ content: bytes(content) })
).hash
};
}
@ -88,7 +88,6 @@ export async function fixture(
} as unknown as WebSocketManager;
const contentCache = new FixedSizeDocumentCache(1024);
const syncer = new Syncer(
"device",
logger,
database,
settings,