From f006ebb50701835f46fa8ecd2aad17733fb12126 Mon Sep 17 00:00:00 2001 From: jariy17 Date: Mon, 30 Nov 2026 18:25:20 +0000 Subject: [PATCH] test: raise timeouts on Windows-slow remove and memory wizard tests On the Windows runner the two credential remove tests can pass bun's 5s default, and the memory wizard's save can take over the 1s waitForText default. A timed-out remove test keeps running after bun moves on, so its leftover remove lands in the next test's project and fails that one too. --- src/handlers/project/add/memory/memory.screen.test.tsx | 3 ++- src/handlers/project/remove/index.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/handlers/project/add/memory/memory.screen.test.tsx b/src/handlers/project/add/memory/memory.screen.test.tsx index f3c751b524..cb9401e6ba 100644 --- a/src/handlers/project/add/memory/memory.screen.test.tsx +++ b/src/handlers/project/add/memory/memory.screen.test.tsx @@ -75,7 +75,8 @@ describe("project add memory wizard", () => { expect(review).toContain("event retention 30 days"); await r.press("return"); - await waitForText(r.lastFrame, "added memory 'orders_memory' to 'TestProject'"); + // Writing agentcore.json can take over a second on the Windows runner. + await waitForText(r.lastFrame, "added memory 'orders_memory' to 'TestProject'", 5000); expect(r.lastFrame()).toContain("[enter] go back"); // The strategies carry the same namespaces `--strategies SEMANTIC,EPISODIC` diff --git a/src/handlers/project/remove/index.test.ts b/src/handlers/project/remove/index.test.ts index d4b755f1cb..4dfa0ef481 100644 --- a/src/handlers/project/remove/index.test.ts +++ b/src/handlers/project/remove/index.test.ts @@ -191,7 +191,7 @@ describe("project remove", () => { expect(await Bun.file(envPath).text()).not.toContain(envKey); expect(io.stderr()).toContain(`removed '${envKey}' from ${ENV_LOCAL_RELATIVE_PATH}`); expect(io.stderr()).toContain("removed credential with name 'svc-key' from project"); - }); + }, 15000); test("--json reports a removal and its cleaned environment keys", async () => { const { projectRoot, cleanup } = await initProject({ @@ -213,7 +213,7 @@ describe("project remove", () => { }); expect(io.stdout()).not.toContain("removed credential with name"); expect(io.stderr()).toContain(`removed '${envKey}' from ${ENV_LOCAL_RELATIVE_PATH}`); - }); + }, 15000); test("removing a secret-reference credential leaves .env.local alone", async () => { const { projectRoot, cleanup } = await initProject({