fix: route acp harness env restore · openclaw/openclaw@fc3e00c
shakkernerd
·
2026-06-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,6 +5,7 @@ import { resetAcpManagerTaskStateForTests } from "../../../test/helpers/acp-mana
|
5 | 5 | import type { OpenClawConfig } from "../../config/config.js"; |
6 | 6 | import type { AcpSessionRuntimeOptions, SessionAcpMeta } from "../../config/sessions/types.js"; |
7 | 7 | import { resetHeartbeatWakeStateForTests } from "../../infra/heartbeat-wake.js"; |
| 8 | +import { deleteTestEnvValue, setTestEnvValue } from "../../test-utils/env.js"; |
8 | 9 | import { resetAcpActiveTurnsForTests } from "./active-turns.js"; |
9 | 10 | |
10 | 11 | export type { AcpRuntime, OpenClawConfig, SessionAcpMeta }; |
@@ -304,9 +305,9 @@ export function installAcpSessionManagerTestLifecycle(): void {
|
304 | 305 | |
305 | 306 | afterEach(() => { |
306 | 307 | if (ORIGINAL_STATE_DIR === undefined) { |
307 | | -delete process.env.OPENCLAW_STATE_DIR; |
| 308 | +deleteTestEnvValue("OPENCLAW_STATE_DIR"); |
308 | 309 | } else { |
309 | | -process.env.OPENCLAW_STATE_DIR = ORIGINAL_STATE_DIR; |
| 310 | +setTestEnvValue("OPENCLAW_STATE_DIR", ORIGINAL_STATE_DIR); |
310 | 311 | } |
311 | 312 | resetHeartbeatWakeStateForTests(); |
312 | 313 | resetAcpManagerTaskStateForTests(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。