fix: route Codex harness fixture env setup · openclaw/openclaw@f2bc159
shakkernerd
·
2026-06-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,6 +16,7 @@ import type { OpenClawConfig } from "../config/config.js";
|
16 | 16 | import type { ContextEngine } from "../context-engine/types.js"; |
17 | 17 | import { isTruthyEnvValue } from "../infra/env.js"; |
18 | 18 | import { extractFirstTextBlock } from "../shared/chat-message-content.js"; |
| 19 | +import { setTestEnvValue } from "../test-utils/env.js"; |
19 | 20 | import type { CallGatewayOptions } from "./call.js"; |
20 | 21 | import type { GatewayClient } from "./client.js"; |
21 | 22 | import { |
@@ -1056,14 +1057,14 @@ describeLive("gateway live (Codex harness)", () => {
|
1056 | 1057 | } else if (!process.env.OPENAI_BASE_URL?.trim()) { |
1057 | 1058 | delete process.env.OPENAI_BASE_URL; |
1058 | 1059 | } |
1059 | | -process.env.OPENCLAW_CONFIG_PATH = configPath; |
| 1060 | +setTestEnvValue("OPENCLAW_CONFIG_PATH", configPath); |
1060 | 1061 | process.env.OPENCLAW_GATEWAY_TOKEN = token; |
1061 | 1062 | process.env.OPENCLAW_SKIP_BROWSER_CONTROL_SERVER = "1"; |
1062 | 1063 | process.env.OPENCLAW_SKIP_CANVAS_HOST = "1"; |
1063 | 1064 | process.env.OPENCLAW_SKIP_CHANNELS = "1"; |
1064 | 1065 | process.env.OPENCLAW_SKIP_CRON = "1"; |
1065 | 1066 | process.env.OPENCLAW_SKIP_GMAIL_WATCHER = "1"; |
1066 | | -process.env.OPENCLAW_STATE_DIR = stateDir; |
| 1067 | +setTestEnvValue("OPENCLAW_STATE_DIR", stateDir); |
1067 | 1068 | |
1068 | 1069 | await fs.mkdir(stateDir, { recursive: true }); |
1069 | 1070 | await writeLiveGatewayConfig({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。