From 86a563e8993983f99ed73fcd2c721d173e2a4ea3 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Fri, 1 May 2026 13:55:13 +0530 Subject: [PATCH] test(rtt): use black-box telegram harness --- scripts/lib/rtt-harness.ts | 5 ++--- test/scripts/rtt-harness.test.ts | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/lib/rtt-harness.ts b/scripts/lib/rtt-harness.ts index 822da9d1c89..237bc8bf57f 100644 --- a/scripts/lib/rtt-harness.ts +++ b/scripts/lib/rtt-harness.ts @@ -104,7 +104,6 @@ export function createHarnessEnv(params: { OPENCLAW_NPM_TELEGRAM_PACKAGE_LABEL: `${params.spec} (${params.version})`, OPENCLAW_NPM_TELEGRAM_PROVIDER_MODE: params.providerMode, OPENCLAW_NPM_TELEGRAM_SCENARIOS: params.scenarios.join(","), - OPENCLAW_NPM_TELEGRAM_SKIP_HOTPATH: "1", OPENCLAW_NPM_TELEGRAM_OUTPUT_DIR: params.rawOutputDir, OPENCLAW_NPM_TELEGRAM_FAST: params.baseEnv.OPENCLAW_NPM_TELEGRAM_FAST ?? "1", OPENCLAW_QA_TELEGRAM_CANARY_TIMEOUT_MS: String(params.timeoutMs), @@ -120,7 +119,7 @@ export function assertRequiredEnv(env: NodeJS.ProcessEnv) { } export async function assertHarnessRoot(harnessRoot: string) { - const scriptPath = path.join(harnessRoot, "scripts/e2e/npm-telegram-live-docker.sh"); + const scriptPath = path.join(harnessRoot, "scripts/e2e/npm-telegram-rtt-docker.sh"); try { await fs.access(scriptPath); } catch { @@ -164,7 +163,7 @@ export async function appendJsonl(pathname: string, value: unknown) { } export async function runHarness(params: { env: NodeJS.ProcessEnv; harnessRoot: string }) { - const scriptPath = path.join(params.harnessRoot, "scripts/e2e/npm-telegram-live-docker.sh"); + const scriptPath = path.join(params.harnessRoot, "scripts/e2e/npm-telegram-rtt-docker.sh"); const child = spawn("bash", [scriptPath], { cwd: params.harnessRoot, env: params.env, diff --git a/test/scripts/rtt-harness.test.ts b/test/scripts/rtt-harness.test.ts index 8643af3721e..f74805672c1 100644 --- a/test/scripts/rtt-harness.test.ts +++ b/test/scripts/rtt-harness.test.ts @@ -63,7 +63,6 @@ describe("RTT harness", () => { expect(env.OPENCLAW_NPM_TELEGRAM_PACKAGE_LABEL).toBe("openclaw@beta (2026.4.30-beta.1)"); expect(env.OPENCLAW_NPM_TELEGRAM_PROVIDER_MODE).toBe("mock-openai"); expect(env.OPENCLAW_NPM_TELEGRAM_SCENARIOS).toBe("telegram-mentioned-message-reply"); - expect(env.OPENCLAW_NPM_TELEGRAM_SKIP_HOTPATH).toBe("1"); expect(env.OPENCLAW_NPM_TELEGRAM_OUTPUT_DIR).toBe(".artifacts/rtt/run/raw"); expect(env.OPENCLAW_NPM_TELEGRAM_FAST).toBe("0"); expect(env.OPENCLAW_QA_TELEGRAM_CANARY_TIMEOUT_MS).toBe("180000");