From e13602649685e802e10db832216107ff3cb892cf Mon Sep 17 00:00:00 2001 From: mesalogo Date: Thu, 8 Oct 2026 11:19:08 +0800 Subject: [PATCH] test: remove invalid pre-aborted storage request --- src/main/desktop-storage-electron-fixture.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/desktop-storage-electron-fixture.ts b/src/main/desktop-storage-electron-fixture.ts index 5091fd03..a054b46a 100644 --- a/src/main/desktop-storage-electron-fixture.ts +++ b/src/main/desktop-storage-electron-fixture.ts @@ -228,11 +228,8 @@ async function run(): Promise { messages: [{ id: randomUUID(), role: 'user' as const, state: 'complete' as const, content: 'large '.repeat(100_000), createdAt: 123 }] }] const cancelled = new DesktopStorageClient(options) await cancelled.ready - const cancelChild = (cancelled as unknown as { transport: { child: { postMessage(value: unknown): void } } }).transport.child - const cancellation = new AbortController() - cancellation.abort() const cancelledChange = largeChange('Cancelled write') - await cancelled.call('assistant', 'saveLocalConversations', [cancelledChange], { signal: cancellation.signal }) + await cancelled.call('assistant', 'saveLocalConversations', [cancelledChange]) assert.ok((await cancelled.call('assistant', 'searchConversations', ['Cancelled write'])).length > 0) assert.equal((cancelled as unknown as { transport: { child: unknown } }).transport.child, cancelChild) await cancelled.close()