test(engine): align heartbeat task-create assertion with FN-5060 dedup shape

51fc82619 (FN-5060 dedup) added sourceParentTaskId / sourceMetadata /
sourceRunId to the heartbeat-spawned task source but didn't update this
test, so the assertion was failing on `sourceRunId: undefined` matching
against the real `"run-001"`. Drop the over-tight key — we still verify
sourceType and sourceAgentId; sourceRunId is covered separately.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-05-23 03:15:05 -07:00
parent 2209c57dd6
commit 9463be1a91

View File

@@ -3181,7 +3181,6 @@ describe("executeHeartbeat", () => {
source: expect.objectContaining({ source: expect.objectContaining({
sourceType: "agent_heartbeat", sourceType: "agent_heartbeat",
sourceAgentId: "agent-001", sourceAgentId: "agent-001",
sourceRunId: undefined,
}), }),
}), expect.objectContaining({ settings: { autoSummarizeTitles: false } })); }), expect.objectContaining({ settings: { autoSummarizeTitles: false } }));
}); });