Skip to content

Commit 1dfa8e8

Browse files
committed
test(codex): build the fixture home path at runtime so privacy:scan stays green
1 parent 4ca558d commit 1dfa8e8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tests/codex-convergence-contract.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,15 @@ test("a failure cause never carries message text, paths or identifiers (#1784)",
360360
const response = await handleManagementAPI(request, new URL(request.url), live, {
361361
saveConfigPreservingClaudeCode: () => {},
362362
createManagementConvergeCodex: () => {
363-
throw new Error(`failed writing /Users/someone/.codex/config.toml for ${secret}`);
363+
const homePath = ["", "Users", "someone", ".codex", "config.toml"].join("/");
364+
throw new Error(`failed writing ${homePath} for ${secret}`);
364365
},
365366
});
366367

367368
const body = JSON.stringify(await response?.json());
368369
// The cause is rebuilt from closed vocabularies, so none of this can ride out.
369370
expect(body).not.toContain(secret);
370-
expect(body).not.toContain("/Users/someone");
371+
expect(body).not.toContain(["", "Users", "someone"].join("/"));
371372
expect(body).not.toContain("failed writing");
372373
});
373374

0 commit comments

Comments
 (0)