Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(device-link): stabilize stale link timeout assertion (#3541)
DavidShenXD54431defc50d
diff --git a/packages/device-link/src/__tests__/client.test.ts b/packages/device-link/src/__tests__/client.test.tsindex 3f6057c262..951128abf3 100644--- a/packages/device-link/src/__tests__/client.test.ts+++ b/packages/device-link/src/__tests__/client.test.ts@@ -5777,17 +5777,17 @@ describe('定时重发的单趟预算(TRANSPORT_RETRY_PASS_BUDGET)', () => {await relay.settleUntil(() => host.getStatus() === 'online' && controller.getStatus() === 'online');relay.dropNext((senderId, env) => senderId === 'desktop' && env.kind === 'link-accept');- const staleOpen = controller.openLink('desktop', {+ const staleOpenError = controller.openLink('desktop', {controllerName: 'iPhone',protocolVersion: 1,appVersion: '1',- }, 50);+ }, 50).catch((error: unknown) => error);await relay.settle();const staleRequestId = (relay.deliveredTo.get('desktop') ?? []).filter((env) => env.kind === 'link-open').at(-1)?.id;expect(staleRequestId).toBeTruthy();- await expect(staleOpen).rejects.toMatchObject({ code: 'INVOKE_TIMEOUT' });+ expect(await staleOpenError).toMatchObject({ code: 'INVOKE_TIMEOUT' });const liveInvoke = host.invoke('ios', {channel: 'maker:cross-generation-request',