Skip to content

Commit 5aaba5c

Browse files
committed
test(server): create the worktree symlinks as junctions for Windows
1 parent be964b1 commit 5aaba5c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/server/src/orchestration/Layers/CheckpointReactor.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,8 @@ describe("CheckpointReactor", () => {
13341334
secondThreadSharingWorktree: true,
13351335
secondThreadWorktreePath: (cwd) => {
13361336
const link = NodePath.join(linkParent, "worktree");
1337-
NodeFS.symlinkSync(cwd, link, "dir");
1337+
// A junction needs no symlink privilege on Windows; POSIX ignores the type.
1338+
NodeFS.symlinkSync(cwd, link, "junction");
13381339
return link;
13391340
},
13401341
});
@@ -1371,7 +1372,7 @@ describe("CheckpointReactor", () => {
13711372
secondThreadSharingWorktree: shared,
13721373
pullRequestRefreshCalls,
13731374
});
1374-
NodeFS.symlinkSync(harness.cwd, worktreePath, "dir");
1375+
NodeFS.symlinkSync(harness.cwd, worktreePath, "junction");
13751376

13761377
harness.provider.emit({
13771378
type: "turn.completed",

0 commit comments

Comments
 (0)