test(server): expect transactional review transition

Align the watchdog in-review assertion with the atomic update contract.

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
Dotta 2026-08-15 01:43:27 +00:00
parent 277c13529a
commit 3526b82e2b
1 changed files with 5 additions and 1 deletions

View File

@ -1948,7 +1948,11 @@ describe("agent issue mutation checkout ownership", () => {
const res = await request(app).patch(`/api/issues/${issueId}`).send({ status: "in_review" });
expect(res.status, JSON.stringify(res.body)).toBe(200);
expect(mockIssueService.update).toHaveBeenCalledWith(issueId, expect.objectContaining({ status: "in_review" }));
expect(mockIssueService.update).toHaveBeenCalledWith(
issueId,
expect.objectContaining({ status: "in_review" }),
expect.anything(),
);
});
it("rejects stale watchdog source mutations when revalidation finds a live path", async () => {