This commit is contained in:
Andras Schmelczer 2026-09-26 20:22:16 +01:00
commit b07aa589ff

View file

@ -8,7 +8,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/sync-operations/content";
import { toStoredSnapshot } 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";
@ -87,14 +87,12 @@ async function fixture(syncIntervalMs: number | undefined) {
}
};
const initial = emptyState("polling-test");
initial.initialized = true;
initial.lastSeenUpdateId = 2;
initial.local = { [documentId]: "note.bin" };
initial.fileManifest = { fileManifestId: 2, entries: { ...initial.local } };
initial.remoteHeads = { [documentId]: latest };
const hash = (await toStoredSnapshot({ content: bytes("base") })).hash;
initial.documents[documentId] = {
materialized: true,
remote: latest,
observedHash: hash,
base: { ...latest, hash }
};