diff --git a/src/infra/path-alias-guards.test.ts b/src/infra/path-alias-guards.test.ts index 3019b97c130..b8e5e9106f0 100644 --- a/src/infra/path-alias-guards.test.ts +++ b/src/infra/path-alias-guards.test.ts @@ -5,10 +5,7 @@ import { withTempDir } from "../test-helpers/temp-dir.js"; import { assertNoPathAliasEscape } from "./path-alias-guards.js"; async function withAliasRoot(cb: (root: string) => Promise): Promise { - await withTempDir( - { prefix: "openclaw-path-alias-", parentDir: process.cwd(), subdir: "root" }, - cb, - ); + await withTempDir({ prefix: "openclaw-path-alias-", subdir: "root" }, cb); } describe("assertNoPathAliasEscape", () => {