test: tighten supervisor marker assertions · openclaw/openclaw@0a8beba
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,15 +3,12 @@ import { detectRespawnSupervisor, SUPERVISOR_HINT_ENV_VARS } from "./supervisor-
|
3 | 3 | |
4 | 4 | describe("SUPERVISOR_HINT_ENV_VARS", () => { |
5 | 5 | it("includes the cross-platform supervisor hint env vars", () => { |
6 | | -expect(SUPERVISOR_HINT_ENV_VARS).toEqual( |
7 | | -expect.arrayContaining([ |
8 | | -"LAUNCH_JOB_LABEL", |
9 | | -"INVOCATION_ID", |
10 | | -"OPENCLAW_WINDOWS_TASK_NAME", |
11 | | -"OPENCLAW_SERVICE_MARKER", |
12 | | -"OPENCLAW_SERVICE_KIND", |
13 | | -]), |
14 | | -); |
| 6 | +const envVars = new Set(SUPERVISOR_HINT_ENV_VARS); |
| 7 | +expect(envVars.has("LAUNCH_JOB_LABEL")).toBe(true); |
| 8 | +expect(envVars.has("INVOCATION_ID")).toBe(true); |
| 9 | +expect(envVars.has("OPENCLAW_WINDOWS_TASK_NAME")).toBe(true); |
| 10 | +expect(envVars.has("OPENCLAW_SERVICE_MARKER")).toBe(true); |
| 11 | +expect(envVars.has("OPENCLAW_SERVICE_KIND")).toBe(true); |
15 | 12 | }); |
16 | 13 | }); |
17 | 14 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。