Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): 固定 OAuth 过期断言时钟
DavidShen9221c085b295
diff --git a/apps/desktop/src/main/plugin-oauth/__tests__/authentication.test.ts b/apps/desktop/src/main/plugin-oauth/__tests__/authentication.test.tsindex 7785726e31..aaabc35e0f 100644--- a/apps/desktop/src/main/plugin-oauth/__tests__/authentication.test.ts+++ b/apps/desktop/src/main/plugin-oauth/__tests__/authentication.test.ts@@ -172,7 +172,9 @@ describe('signed OAuth transport with explicit peer trust', () => {await expect(authenticateOauthController({...f.options,- target: { ...f.target, expiresAtMs: Date.now() - 1 },+ // Compare against the fixture clock. Using the wall clock here can+ // advance past the fixture's frozen value between setup and assertion.+ target: { ...f.target, expiresAtMs: f.options.now() - 1 },}),).rejects.toThrow();expect(f.invoke).not.toHaveBeenCalled();