From 0f07301607db9e09703e8a62b0b50c06376d03e7 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Fri, 20 Nov 2026 06:51:18 -0600 Subject: [PATCH] test(plugins): harness-watch-w2 re-check: the two group-kill tests wait up to 15 s for the stand-in's background child to start, since the --help capture comes after the adapter runs and --version and missed 3 s under heavy load (#1873, lane harness-watch-w2) --- packages/plugins/tests/harness-watch-w2.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/tests/harness-watch-w2.test.mjs b/packages/plugins/tests/harness-watch-w2.test.mjs index 1d2f359e0..8f678f8fd 100644 --- a/packages/plugins/tests/harness-watch-w2.test.mjs +++ b/packages/plugins/tests/harness-watch-w2.test.mjs @@ -341,7 +341,7 @@ test("W2 claude-code: a capture stops what the binary left in the background, on ].join("\n"), { mode: 0o755 }); const stop = new AbortController(); const r = claude.inspect({ env: { MOSAIC_CLAUDE_BIN: bin }, scratch: scratch(t), signal: stop.signal }); - assert.ok(await until(() => existsSync(held) && readFileSync(held, "utf8").trim() !== ""), "--help started"); + assert.ok(await until(() => existsSync(held) && readFileSync(held, "utf8").trim() !== "", 15000), "--help started"); stop.abort(); const out = await r; assert.match(out.line, /--help was stopped/); @@ -357,7 +357,7 @@ test("W2 pi: a stopped version capture stops what the binary left in the backgro writeFileSync(bin, `#!/bin/sh\nsleep 30 2>/dev/null & echo $! > '${held}' 2>/dev/null\nwait\n`, { mode: 0o755 }); const stop = new AbortController(); const r = printedVersion(bin, { signal: stop.signal }); - assert.ok(await until(() => existsSync(held) && readFileSync(held, "utf8").trim() !== ""), "--version started"); + assert.ok(await until(() => existsSync(held) && readFileSync(held, "utf8").trim() !== "", 15000), "--version started"); stop.abort(); assert.equal(await r, null); const pid = Number(readFileSync(held, "utf8").trim());