Skip to content

Commit 0d4e8f2

Browse files
vincentkocjalehman
andauthored
fix(test): publish runtime in CLI live harness (#129041)
Co-authored-by: Josh Lehman <[email protected]>
1 parent 03edb00 commit 0d4e8f2

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

‎src/gateway/gateway-cli-backend.live-helpers.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("gateway cli backend live helpers", () => {
4343
delete process.env.ANTHROPIC_API_KEY_OLD;
4444
});
4545

46-
it("applies and restores live env including minimal gateway mode", async () => {
46+
it("applies and restores live env including full gateway mode", async () => {
4747
const { applyCliBackendLiveEnv, restoreCliBackendLiveEnv, snapshotCliBackendLiveEnv } =
4848
liveHelpers;
4949

@@ -74,7 +74,7 @@ describe("gateway cli backend live helpers", () => {
7474
expect(process.env.OPENCLAW_SKIP_CANVAS_HOST).toBe("1");
7575
expect(process.env.OPENCLAW_SKIP_BROWSER_CONTROL_SERVER).toBe("1");
7676
expect(process.env.OPENCLAW_BUNDLED_PLUGINS_DIR).toBe("old-bundled");
77-
expect(process.env.OPENCLAW_TEST_MINIMAL_GATEWAY).toBe("1");
77+
expect(process.env.OPENCLAW_TEST_MINIMAL_GATEWAY).toBe("0");
7878
expect(process.env.ANTHROPIC_API_KEY).toBeUndefined();
7979
expect(process.env.ANTHROPIC_API_KEY_OLD).toBeUndefined();
8080

‎src/gateway/gateway-cli-backend.live-helpers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ export function applyCliBackendLiveEnv(preservedEnv: ReadonlySet<string>): void
553553
process.env.OPENCLAW_SKIP_CRON = "1";
554554
process.env.OPENCLAW_SKIP_CANVAS_HOST = "1";
555555
process.env.OPENCLAW_SKIP_BROWSER_CONTROL_SERVER = "1";
556-
process.env.OPENCLAW_TEST_MINIMAL_GATEWAY = "1";
556+
process.env.OPENCLAW_TEST_MINIMAL_GATEWAY = "0";
557557
if (!preservedEnv.has("ANTHROPIC_API_KEY")) {
558558
delete process.env.ANTHROPIC_API_KEY;
559559
}

‎src/gateway/gateway-cli-backend.live.test.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,6 @@ describeLive("gateway live (cli backend)", () => {
284284

285285
clearRuntimeConfigSnapshot();
286286
applyCliBackendLiveEnv(preservedEnv);
287-
if (CLI_CACHE_PROBE) {
288-
// Cache proof crosses the production prepared-runtime and MCP dispatch boundary.
289-
// Minimal Gateway mode intentionally omits that publication and cannot prove this path.
290-
setTestEnvValue("OPENCLAW_TEST_MINIMAL_GATEWAY", "0");
291-
}
292287

293288
const token = `test-${randomUUID()}`;
294289
setTestEnvValue("OPENCLAW_GATEWAY_TOKEN", token);

0 commit comments

Comments
 (0)