This commit is contained in:
Andras Schmelczer 2025-11-23 20:27:16 +00:00
parent 4b195b070d
commit 18be9f4dd8
19 changed files with 301 additions and 226 deletions

View file

@ -127,8 +127,9 @@ export class MockAgent extends MockClient {
public async finish(): Promise<void> {
await this.client.setSetting("isSyncEnabled", true);
await Promise.allSettled(this.pendingActions);
await this.client.waitAndStop();
// eslint-disable-next-line no-restricted-properties
await Promise.all(this.pendingActions);
await this.client.destroy();
}
public assertFileSystemsAreConsistent(otherAgent: MockAgent): void {

View file

@ -1,6 +1,4 @@
import type { StoredDatabase ,
TextWithCursors
} from "sync-client";
import type { StoredDatabase, TextWithCursors } from "sync-client";
import { assert } from "../utils/assert";
import {
type RelativePath,