mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-24 10:59:49 +00:00
test: use immediate for bash abort turn
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user