Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(scripts): cover cancel-aware ci behaviour

Steven Enamakelca0ec8124f95
diff --git a/scripts/__tests__/ci-cancel-aware.test.mjs b/scripts/__tests__/ci-cancel-aware.test.mjs
index 85c9c7272d..7e17e2c547 100644
--- a/scripts/__tests__/ci-cancel-aware.test.mjs
+++ b/scripts/__tests__/ci-cancel-aware.test.mjs
@@ -33,6 +33,7 @@ test("captured output returns when the command exits, not after a watchdog poll"
const elapsed = Date.now() - started;
assert.equal(stdout.trim(), "done");
+ assert.ok(!stderr.includes("Terminated"), `watchdog shutdown leaked noise: ${stderr}`);
// The orphaned `sleep` of a killed watchdog used to hold stdout open until
// the poll interval elapsed, so every captured call cost up to 20 s.
assert.ok(elapsed < 3000, `wrapper held output open for ${elapsed} ms`);