test(cli): preserve daemon connection failure exit code

This commit is contained in:
a1chzt
2026-10-10 11:51:06 +08:00
parent e692695375
commit af55362343
+1 -1
View File
@@ -289,7 +289,7 @@ describe('od project CLI', () => {
const closed = await startProjectStubServer();
await closed.close();
const result = await runCli([...args, '--daemon-url', closed.baseUrl]);
expect(result.code).toBe(1);
expect(result.code).toBe(64);
expect(result.stdout).toBe('');
expect(JSON.parse(result.stderr).error.code).toBe('daemon-not-running');
});