fix: narrow test config path · openclaw/openclaw@4ecb45b
shakkernerd
·
2026-06-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -260,9 +260,10 @@ describe("tool_result_persist hook", () => {
|
260 | 260 | it("keeps sensitive parent keys when custom value patterns match the key probe", () => { |
261 | 261 | const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-redact-config-")); |
262 | 262 | 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); |
264 | 265 | fs.writeFileSync( |
265 | | -process.env.OPENCLAW_CONFIG_PATH, |
| 266 | +configPath, |
266 | 267 | JSON.stringify({ logging: { redactPatterns: ["/[a-z0-9]{30,}/g"] } }), |
267 | 268 | "utf-8", |
268 | 269 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。