Skip to content

Commit f2bc159

Browse files
committed
fix: route Codex harness fixture env setup
1 parent 4c841ac commit f2bc159

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/gateway/gateway-codex-harness.live.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type { OpenClawConfig } from "../config/config.js";
1616
import type { ContextEngine } from "../context-engine/types.js";
1717
import { isTruthyEnvValue } from "../infra/env.js";
1818
import { extractFirstTextBlock } from "../shared/chat-message-content.js";
19+
import { setTestEnvValue } from "../test-utils/env.js";
1920
import type { CallGatewayOptions } from "./call.js";
2021
import type { GatewayClient } from "./client.js";
2122
import {
@@ -1056,14 +1057,14 @@ describeLive("gateway live (Codex harness)", () => {
10561057
} else if (!process.env.OPENAI_BASE_URL?.trim()) {
10571058
delete process.env.OPENAI_BASE_URL;
10581059
}
1059-
process.env.OPENCLAW_CONFIG_PATH = configPath;
1060+
setTestEnvValue("OPENCLAW_CONFIG_PATH", configPath);
10601061
process.env.OPENCLAW_GATEWAY_TOKEN = token;
10611062
process.env.OPENCLAW_SKIP_BROWSER_CONTROL_SERVER = "1";
10621063
process.env.OPENCLAW_SKIP_CANVAS_HOST = "1";
10631064
process.env.OPENCLAW_SKIP_CHANNELS = "1";
10641065
process.env.OPENCLAW_SKIP_CRON = "1";
10651066
process.env.OPENCLAW_SKIP_GMAIL_WATCHER = "1";
1066-
process.env.OPENCLAW_STATE_DIR = stateDir;
1067+
setTestEnvValue("OPENCLAW_STATE_DIR", stateDir);
10671068

10681069
await fs.mkdir(stateDir, { recursive: true });
10691070
await writeLiveGatewayConfig({

0 commit comments

Comments
 (0)