fix: route ACP spawn fixture env setup · openclaw/openclaw@3fbdbb5
shakkernerd
·
2026-06-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -23,6 +23,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
23 | 23 | import { isTruthyEnvValue } from "../infra/env.js"; |
24 | 24 | import { clearPluginLoaderCache } from "../plugins/loader.js"; |
25 | 25 | import { resetPluginRuntimeStateForTest } from "../plugins/runtime.js"; |
| 26 | +import { setTestEnvValue } from "../test-utils/env.js"; |
26 | 27 | import { sleep } from "../utils.js"; |
27 | 28 | import { restoreLiveEnv, snapshotLiveEnv, type LiveEnvSnapshot } from "./live-env-test-helpers.js"; |
28 | 29 | import { startGatewayServer } from "./server.js"; |
@@ -282,8 +283,8 @@ describeLive("gateway live (ACP spawn defaults)", () => {
|
282 | 283 | const sessionKeys: string[] = []; |
283 | 284 | let server: Awaited<ReturnType<typeof startGatewayServer>> | undefined; |
284 | 285 | |
285 | | -process.env.OPENCLAW_CONFIG_PATH = tempConfigPath; |
286 | | -process.env.OPENCLAW_STATE_DIR = tempStateDir; |
| 286 | +setTestEnvValue("OPENCLAW_CONFIG_PATH", tempConfigPath); |
| 287 | +setTestEnvValue("OPENCLAW_STATE_DIR", tempStateDir); |
287 | 288 | process.env.OPENCLAW_SKIP_CHANNELS = "1"; |
288 | 289 | process.env.OPENCLAW_SKIP_GMAIL_WATCHER = "1"; |
289 | 290 | process.env.OPENCLAW_SKIP_CRON = "1"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。