@@ -16,7 +16,7 @@ import {
|
16 | 16 | disconnectGatewayClient, |
17 | 17 | getFreeGatewayPort, |
18 | 18 | } from "../gateway/test-helpers.e2e.js"; |
19 | | -import { captureEnv } from "../test-utils/env.js"; |
| 19 | +import { captureEnv, setTestEnvValue } from "../test-utils/env.js"; |
20 | 20 | import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../utils/message-channel.js"; |
21 | 21 | import type { ExecApprovalFollowupOutcome } from "./bash-tools.exec-types.js"; |
22 | 22 | import { createExecTool } from "./bash-tools.exec.js"; |
@@ -106,18 +106,18 @@ describe("gateway-hosted exec approvals", () => {
|
106 | 106 | "utf8", |
107 | 107 | ); |
108 | 108 | |
109 | | -process.env.HOME = tempHome; |
110 | | -process.env.OPENCLAW_STATE_DIR = stateDir; |
111 | | -process.env.OPENCLAW_CONFIG_PATH = configPath; |
112 | | -process.env.OPENCLAW_GATEWAY_TOKEN = token; |
113 | | -process.env.OPENCLAW_GATEWAY_PORT = String(port); |
114 | | -process.env.OPENCLAW_SKIP_CHANNELS = "1"; |
115 | | -process.env.OPENCLAW_SKIP_GMAIL_WATCHER = "1"; |
116 | | -process.env.OPENCLAW_SKIP_CRON = "1"; |
117 | | -process.env.OPENCLAW_SKIP_CANVAS_HOST = "1"; |
118 | | -process.env.OPENCLAW_SKIP_BROWSER_CONTROL_SERVER = "1"; |
119 | | -process.env.OPENCLAW_SKIP_PROVIDERS = "1"; |
120 | | -process.env.OPENCLAW_TEST_MINIMAL_GATEWAY = "1"; |
| 109 | +setTestEnvValue("HOME", tempHome); |
| 110 | +setTestEnvValue("OPENCLAW_STATE_DIR", stateDir); |
| 111 | +setTestEnvValue("OPENCLAW_CONFIG_PATH", configPath); |
| 112 | +setTestEnvValue("OPENCLAW_GATEWAY_TOKEN", token); |
| 113 | +setTestEnvValue("OPENCLAW_GATEWAY_PORT", String(port)); |
| 114 | +setTestEnvValue("OPENCLAW_SKIP_CHANNELS", "1"); |
| 115 | +setTestEnvValue("OPENCLAW_SKIP_GMAIL_WATCHER", "1"); |
| 116 | +setTestEnvValue("OPENCLAW_SKIP_CRON", "1"); |
| 117 | +setTestEnvValue("OPENCLAW_SKIP_CANVAS_HOST", "1"); |
| 118 | +setTestEnvValue("OPENCLAW_SKIP_BROWSER_CONTROL_SERVER", "1"); |
| 119 | +setTestEnvValue("OPENCLAW_SKIP_PROVIDERS", "1"); |
| 120 | +setTestEnvValue("OPENCLAW_TEST_MINIMAL_GATEWAY", "1"); |
121 | 121 | clearRuntimeConfigSnapshot(); |
122 | 122 | clearConfigCache(); |
123 | 123 | clearSessionStoreCacheForTest(); |
|