fix(exec): suggest increasing timeout on timeouts

This commit is contained in:
AaronWander
2026-03-03 09:50:49 +08:00
committed by Peter Steinberger
parent 91cdb703bd
commit 4c32411bee
3 changed files with 8 additions and 2 deletions

View File

@@ -458,6 +458,9 @@ describe("exec tool backgrounding", () => {
allowBackground: false,
});
await expect(executeExecCommand(customBash, longDelayCmd)).rejects.toThrow(/timed out/i);
await expect(executeExecCommand(customBash, longDelayCmd)).rejects.toThrow(
/re-run with a higher timeout/i,
);
});
it.each<DisallowedElevationCase>(DISALLOWED_ELEVATION_CASES)(