Skip to content

Commit 4324ba2

Browse files
authored
test: canonicalize macOS temporary workspace paths (#127366)
1 parent 0a20c57 commit 4324ba2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/agents/sandbox/fs-bridge.test-helpers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export async function withTempDir<T>(
170170
prefix: string,
171171
run: (stateDir: string) => Promise<T>,
172172
): Promise<T> {
173-
const stateDir = await fs.mkdtemp(path.join(os.tmpdir(), prefix));
173+
const stateDir = await fs.realpath(await fs.mkdtemp(path.join(os.tmpdir(), prefix)));
174174
try {
175175
return await run(stateDir);
176176
} finally {

‎src/agents/tools/skill-workshop-tool.collection-restore.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ describe("skill_workshop collection restore", () => {
2121
prefix: "openclaw-skill-collection-restore-state-",
2222
});
2323
cleanups.push(async () => await testState.cleanup());
24-
const workspaceDir = await tempDirs.make("openclaw-skill-collection-restore-");
24+
const workspaceDir = await fs.realpath(
25+
await tempDirs.make("openclaw-skill-collection-restore-"),
26+
);
2527
const proposal = await proposeCreateSkill({
2628
workspaceDir,
2729
env: testState.env,

0 commit comments

Comments
 (0)