Skip to content

Commit 78486e2

Browse files
authored
test(infra): realpath sandbox migration temp root for macOS (#117261)
1 parent ee320a6 commit 78486e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/infra/state-migrations.workspace-setup-sandbox.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ describe("sandbox workspace Doctor migration", () => {
4141
});
4242

4343
function setup() {
44-
const homeDir = tempDirs.make("openclaw-sandbox-workspace-migration-home-");
44+
// macOS os.tmpdir() is a /var -> /private/var symlink; prod resolvers return
45+
// canonical paths, so expectations must build from the realpathed root.
46+
const homeDir = fs.realpathSync(tempDirs.make("openclaw-sandbox-workspace-migration-home-"));
4547
const stateDir = path.join(homeDir, ".openclaw");
4648
const workspaceDir = path.join(homeDir, "workspace");
4749
fs.mkdirSync(workspaceDir, { recursive: true });

0 commit comments

Comments
 (0)