Skip to content

Commit ccc92d7

Browse files
committed
Stabilize cancellation fixture
1 parent ec87cc7 commit ccc92d7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/fixtures/fake-codex.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ if (prompt.includes("MALFORMED_JSONL")) {
7575
}
7676

7777
if (prompt.includes("HANG_FOREVER")) {
78-
await new Promise(() => {});
78+
await new Promise(() => {
79+
setInterval(() => {}, 1000);
80+
});
7981
}
8082

8183
const delayMatch = prompt.match(/DELAY_MS=(\d+)/);

0 commit comments

Comments
 (0)