Skip to content

Commit 4ecb45b

Browse files
committed
fix: narrow test config path
1 parent 0757cad commit 4ecb45b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/agents/session-tool-result-guard.tool-result-persist-hook.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,10 @@ describe("tool_result_persist hook", () => {
260260
it("keeps sensitive parent keys when custom value patterns match the key probe", () => {
261261
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-redact-config-"));
262262
tempDirs.push(tempDir);
263-
setTestEnvValue("OPENCLAW_CONFIG_PATH", path.join(tempDir, "openclaw.json"));
263+
const configPath = path.join(tempDir, "openclaw.json");
264+
setTestEnvValue("OPENCLAW_CONFIG_PATH", configPath);
264265
fs.writeFileSync(
265-
process.env.OPENCLAW_CONFIG_PATH,
266+
configPath,
266267
JSON.stringify({ logging: { redactPatterns: ["/[a-z0-9]{30,}/g"] } }),
267268
"utf-8",
268269
);

0 commit comments

Comments
 (0)