Skip to content

Commit c14a0c6

Browse files
committed
test(codex): complete sandbox turn inline
1 parent a56f452 commit c14a0c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/codex/src/app-server/run-attempt.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,13 +1212,13 @@ describe("runCodexAppServerAttempt", () => {
12121212
},
12131213
},
12141214
} as never;
1215-
const { requests, waitForMethod, completeTurn } = createStartedThreadHarness();
1215+
const { requests } = createStartedThreadHarness(async (method) =>
1216+
method === "turn/start" ? turnStartResult("turn-1", "completed") : undefined,
1217+
);
12161218

12171219
const run = runCodexAppServerAttempt(params, {
12181220
pluginConfig: { appServer: { mode: "yolo" } },
12191221
});
1220-
await waitForMethod("turn/start");
1221-
await completeTurn({ threadId: "thread-1", turnId: "turn-1" });
12221222
await run;
12231223

12241224
const startRequest = requests.find((request) => request.method === "thread/start");

0 commit comments

Comments
 (0)