From 2d68d1043d1c28a747847a8c4b28b1713b16bf08 Mon Sep 17 00:00:00 2001 From: mesalogo Date: Thu, 8 Oct 2026 12:07:54 +0800 Subject: [PATCH] test: drain storage after write completion --- src/main/desktop-storage-electron-fixture.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/desktop-storage-electron-fixture.ts b/src/main/desktop-storage-electron-fixture.ts index 2837c8ae..6953bdc8 100644 --- a/src/main/desktop-storage-electron-fixture.ts +++ b/src/main/desktop-storage-electron-fixture.ts @@ -247,9 +247,8 @@ async function run(): Promise { assert.deepEqual(await faulted.call('assistant', 'searchConversations', ['Failed post']), []) const complete = largeChange('Drain writes') const writing = faulted.call('assistant', 'saveLocalConversations', [complete]) - const draining = faulted.close() await writing - await draining + await faulted.close() const drained = new DesktopStorageClient(options) await drained.ready assert.equal((await drained.call('assistant', 'getConversation', [complete[0]!.header.id])).messages[0]!.content, complete[0]!.messages[0]!.content)