Skip to content

Commit dc2de97

Browse files
ScottN-PVclaude
andcommitted
test(server): assert the settled approval node exists before comparing its parent
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent cf0ee21 commit dc2de97

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5919,10 +5919,9 @@ describe("ClaudeAdapterV2 background wake turns", () => {
59195919
(event) =>
59205920
event.type === "node.updated" && event.node.id === request.runtimeRequest.nodeId,
59215921
);
5922-
assert.equal(
5923-
node?.type === "node.updated" ? node.node.parentNodeId : null,
5924-
node?.type === "node.updated" ? node.node.rootNodeId : undefined,
5925-
);
5922+
assert.equal(node?.type, "node.updated");
5923+
if (node?.type !== "node.updated") return;
5924+
assert.strictEqual(node.node.parentNodeId, node.node.rootNodeId);
59265925
yield* harness.runtime.respondToRuntimeRequest({
59275926
requestId: request.runtimeRequest.id,
59285927
decision: scenario === "decline" ? "decline" : "accept",

0 commit comments

Comments
 (0)