From 04c8b9b46a7eaae3c5a850fbd66046aaf9fdaaa6 Mon Sep 17 00:00:00 2001 From: brennanb2025 Date: Fri, 3 Jul 2026 18:26:54 -0700 Subject: [PATCH] Update owner-routing payload assertions for the candidate head field Co-authored-by: Orca --- .../slices/github-pr-refresh-owner-routing.test.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/store/slices/github-pr-refresh-owner-routing.test.ts b/src/renderer/src/store/slices/github-pr-refresh-owner-routing.test.ts index d53beb70488..f7e49e211d1 100644 --- a/src/renderer/src/store/slices/github-pr-refresh-owner-routing.test.ts +++ b/src/renderer/src/store/slices/github-pr-refresh-owner-routing.test.ts @@ -155,7 +155,7 @@ describe('GitHub PR refresh owner-host routing', () => { expect(runtimeEnvironmentCall).toHaveBeenCalledWith({ selector: 'env-1', method: 'github.prForBranch', - params: { repo: 'repo-runtime', branch, linkedPRNumber: null }, + params: { repo: 'repo-runtime', branch, linkedPRNumber: null, currentHeadOid: 'head-oid' }, timeoutMs: 30_000 }) }) @@ -228,7 +228,7 @@ describe('GitHub PR refresh owner-host routing', () => { expect(runtimeEnvironmentCall).toHaveBeenCalledWith({ selector: 'env-1', method: 'github.prForBranch', - params: { repo: 'repo-runtime', branch, linkedPRNumber: null }, + params: { repo: 'repo-runtime', branch, linkedPRNumber: null, currentHeadOid: 'head-oid' }, timeoutMs: 30_000 }) }) @@ -272,7 +272,12 @@ describe('GitHub PR refresh owner-host routing', () => { expect(runtimeEnvironmentCall).toHaveBeenCalledWith({ selector: 'env-1', method: 'github.prForBranch', - params: { repo: 'repo-runtime', branch: 'feature/runtime', linkedPRNumber: null }, + params: { + repo: 'repo-runtime', + branch: 'feature/runtime', + linkedPRNumber: null, + currentHeadOid: 'head-oid' + }, timeoutMs: 30_000 }) })