test: fix assertions broken by runContext propagation

store.logEntry, assignTask, and checkoutTask now receive an extra
runContext argument. Updated test assertions in executor.test.ts,
agent-heartbeat.test.ts, and restart.integration.test.ts to match
the current call signatures using expect.objectContaining where
appropriate.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-09 18:31:54 -07:00
parent 411a2c26ad
commit c9eacbfdf4
4 changed files with 40 additions and 9 deletions

View File

@@ -943,6 +943,8 @@ describe("Worktree pool restart with recycleWorktrees=true", () => {
expect(store.logEntry).toHaveBeenCalledWith(
"FN-110",
expect.stringContaining("Acquired worktree from pool"),
undefined,
expect.objectContaining({ agentId: "executor" }),
);
});