test: use immediate for bash abort turn

This commit is contained in:
Peter Steinberger
2026-05-11 18:38:32 +01:00
parent 07795d57fe
commit 2e7d9e2290

View File

@@ -958,7 +958,7 @@ describe("exec backgrounded onUpdate suppression", () => {
]);
// Abort almost immediately so the signal fires while the command
// is still producing output.
setTimeout(() => abortController.abort(), 0);
setImmediate(() => abortController.abort());
await execTool.execute(nextCallId(), { command }, abortController.signal, onUpdateSpy);
const callsAtAbort = onUpdateSpy.mock.calls.length;
// Allow a tick for any straggling stdout data events.