refactor: split subprocess timeout and failure error seams

This commit is contained in:
Tom Boucher
2026-05-04 20:05:09 -04:00
parent 41683b2f53
commit 6fe4af2546
3 changed files with 25 additions and 19 deletions

View File

@@ -41,7 +41,9 @@ describe('QuerySubprocessAdapter', () => {
projectDir: dir,
gsdToolsPath,
timeoutMs: 2_000,
createToolsError: (message, command, args, exitCode, stderr) =>
createTimeoutError: (message, command, args, stderr) =>
new FakeToolsError(message, command, args, null, stderr) as never,
createFailureError: (message, command, args, exitCode, stderr) =>
new FakeToolsError(message, command, args, exitCode, stderr) as never,
});
}