Skip to content

Commit f4f3c7c

Browse files
test(operator): make recovery self-test path-safe
1 parent fffe259 commit f4f3c7c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/operator/codex-workspace-state-recovery-selftest.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import fs from "node:fs"
33
import os from "node:os"
44
import path from "node:path"
55
import { spawnSync } from "node:child_process"
6+
import { fileURLToPath } from "node:url"
67

7-
const root = path.resolve(path.dirname(new URL(import.meta.url).pathname), "../..")
8+
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..")
89
const workspaceGuard = path.join(root, "scripts/operator/codex-windows-workspace-filesystem-guard.mjs")
910
const stateGuard = path.join(root, "scripts/operator/codex-state-recovery-guard.mjs")
1011
const temp = fs.mkdtempSync(path.join(os.tmpdir(), "codex-workspace-state-guard-"))

0 commit comments

Comments
 (0)