Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(plugins): 核对账号退出前回执排空顺序

Dash2bca82d3aab1
diff --git a/apps/desktop/src/main/device-link/__tests__/sharedTaskAccountBoundary.test.ts b/apps/desktop/src/main/device-link/__tests__/sharedTaskAccountBoundary.test.ts
index 676e6b277f..3563e1a651 100644
--- a/apps/desktop/src/main/device-link/__tests__/sharedTaskAccountBoundary.test.ts
+++ b/apps/desktop/src/main/device-link/__tests__/sharedTaskAccountBoundary.test.ts
@@ -83,7 +83,7 @@ describe('shared-task account boundary cleanup', () => {
expect(site[1]).toContain('releaseOwnership: releaseDeviceLinkOwnershipBeforeLogout');
expect(site[1]).toContain('onClosureFailure: () => markAccountBoundaryAbortedMidTeardown(reason)');
const next = teardown.slice(site.index! + site[0].length).trimStart();
- expect(next).toMatch(/^(?:try \{\s*)?await lifecycleDbClientManager\.dispose\(reason\);/);
+ expect(next).toMatch(/^(?:try \{\s*)?await flushPluginTaskLifecycle\(\);\s*await lifecycleDbClientManager\.dispose\(reason\);/);
}
expect(teardown).not.toContain('await closeSharedTasksBeforeLogout()');
});