baa-conductor

git clone 

commit
0de3990
parent
40b1c7f
author
im_wower
date
2026-03-22 22:38:09 +0800 CST
test(conductor-daemon): tidy exec failure regression coverage
1 files changed,  +11, -13
M apps/conductor-daemon/src/index.test.js
+11, -13
 1@@ -1003,13 +1003,12 @@ test("handleConductorHttpRequest serves the migrated local business endpoints fr
 2           repository,
 3           snapshotLoader: () => snapshot
 4         }
 5-      )
 6-    );
 7-    assert.equal(tccExecResponse.status, 200);
 8-    const tccExecPayload = parseJsonBody(tccExecResponse);
 9-    assert.equal(tccExecPayload.data.ok, false);
10-    assert.equal(tccExecPayload.data.error.code, "TCC_PERMISSION_DENIED");
11-    assertEmptyExecResultShape(tccExecPayload.data.result);
12+      );
13+      assert.equal(execResponse.status, 200);
14+      const execPayload = parseJsonBody(execResponse);
15+      assert.equal(execPayload.data.ok, true);
16+      assert.equal(execPayload.data.operation, "exec");
17+      assert.equal(execPayload.data.result.stdout, "host-http-ok");
18 
19     const systemStateResponse = await handleConductorHttpRequest(
20       {
21@@ -1019,13 +1018,12 @@ test("handleConductorHttpRequest serves the migrated local business endpoints fr
22       localApiContext
23     );
24     assert.equal(parseJsonBody(systemStateResponse).data.mode, "paused");
25-  } finally {
26-    rmSync(hostOpsDir, {
27-      force: true,
28-      recursive: true
29-    });
30+    } finally {
31+      rmSync(hostOpsDir, {
32+        force: true,
33+        recursive: true
34+      });
35   }
36-}
37 );
38 
39 test("ConductorRuntime serves health and migrated local API endpoints over HTTP", async () => {