Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: use presence reads for remote-only hold inventory case (#13271)

Adam Eivyb6285946ad4d
diff --git a/server/services/branchReconcileInventoryPrune.test.js b/server/services/branchReconcileInventoryPrune.test.js
index f86febd539..089d10144e 100644
--- a/server/services/branchReconcileInventoryPrune.test.js
+++ b/server/services/branchReconcileInventoryPrune.test.js
@@ -10,9 +10,6 @@ describe('historical checkout inventory', () => {
it('keeps remote-only holds when their local branch is absent, while pruning missing local branches', async () => {
const remote = { branch: 'fix/remote-only', reason: 'remote-branch-held' };
const local = { branch: 'fix/gone', reason: 'actionable' };
- execGit.mockImplementation(async (args) => args[0] === 'worktree'
- ? { stdout: 'worktree /repo\nbranch refs/heads/main\n\n', exitCode: 0 }
- : { stdout: '', exitCode: 1 });
expect(await findGoneInventoryRows('/repo', [remote, local], { includeObligations: true })).toEqual([local]);
});