fix: route ACP bind state env setup · openclaw/openclaw@c2d2f7f
shakkernerd
·
2026-06-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,6 +22,7 @@ import {
|
22 | 22 | } from "../plugins/runtime.js"; |
23 | 23 | import { extractFirstTextBlock } from "../shared/chat-message-content.js"; |
24 | 24 | import { createTestRegistry } from "../test-utils/channel-plugins.js"; |
| 25 | +import { setTestEnvValue } from "../test-utils/env.js"; |
25 | 26 | import { sleep } from "../utils.js"; |
26 | 27 | import type { GatewayClient } from "./client.js"; |
27 | 28 | import { connectTestGatewayClient } from "./gateway-cli-backend.live-helpers.js"; |
@@ -593,7 +594,7 @@ describeLive("gateway live (ACP bind)", () => {
|
593 | 594 | | undefined; |
594 | 595 | |
595 | 596 | clearRuntimeConfigSnapshot(); |
596 | | -process.env.OPENCLAW_STATE_DIR = tempStateDir; |
| 597 | +setTestEnvValue("OPENCLAW_STATE_DIR", tempStateDir); |
597 | 598 | process.env.OPENCLAW_SKIP_CHANNELS = "1"; |
598 | 599 | process.env.OPENCLAW_SKIP_GMAIL_WATCHER = "1"; |
599 | 600 | process.env.OPENCLAW_SKIP_CRON = "0"; |
@@ -682,7 +683,7 @@ describeLive("gateway live (ACP bind)", () => {
|
682 | 683 | }, |
683 | 684 | }; |
684 | 685 | await fs.writeFile(tempConfigPath, `${JSON.stringify(nextCfg, null, 2)}\n`); |
685 | | -process.env.OPENCLAW_CONFIG_PATH = tempConfigPath; |
| 686 | +setTestEnvValue("OPENCLAW_CONFIG_PATH", tempConfigPath); |
686 | 687 | logLiveStep(`using parent live model ${parentModel}`); |
687 | 688 | clearConfigCache(); |
688 | 689 | clearRuntimeConfigSnapshot(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。