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({