test(perf): avoid codex failure runtime plan setup

This commit is contained in:
Peter Steinberger
2026-05-06 13:43:49 +01:00
parent d4b4660026
commit 2d5df741f5

View File

@@ -1461,9 +1461,10 @@ describe("runCodexAppServerAttempt", () => {
return undefined;
});
await expect(
runCodexAppServerAttempt(createParamsWithRuntimePlan(sessionFile, workspaceDir)),
).rejects.toThrow("turn start exploded");
const params = createParams(sessionFile, workspaceDir);
params.runtimePlan = createCodexRuntimePlanFixture();
await expect(runCodexAppServerAttempt(params)).rejects.toThrow("turn start exploded");
expect(llmInput).toHaveBeenCalledTimes(1);
expect(llmOutput).toHaveBeenCalledTimes(1);