.
This commit is contained in:
parent
4c002f9acd
commit
b07aa589ff
1 changed files with 728 additions and 530 deletions
|
|
@ -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 }
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue