test(gateway): keep session event suite minimal · openclaw/openclaw@27e3130
vincentkoc
·
2026-04-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,11 +24,8 @@ let harness: Awaited<ReturnType<typeof createGatewaySuiteHarness>>;
|
24 | 24 | let subscribedOperatorWs: |
25 | 25 | | Awaited<ReturnType<Awaited<ReturnType<typeof createGatewaySuiteHarness>>["openWs"]>> |
26 | 26 | | undefined; |
27 | | -let previousMinimalGateway: string | undefined; |
28 | 27 | |
29 | 28 | beforeAll(async () => { |
30 | | -previousMinimalGateway = process.env.OPENCLAW_TEST_MINIMAL_GATEWAY; |
31 | | -delete process.env.OPENCLAW_TEST_MINIMAL_GATEWAY; |
32 | 29 | harness = await createGatewaySuiteHarness(); |
33 | 30 | subscribedOperatorWs = await harness.openWs(); |
34 | 31 | await connectOk(subscribedOperatorWs, { |
@@ -43,11 +40,6 @@ afterAll(async () => {
|
43 | 40 | if (harness) { |
44 | 41 | await harness.close(); |
45 | 42 | } |
46 | | -if (previousMinimalGateway === undefined) { |
47 | | -delete process.env.OPENCLAW_TEST_MINIMAL_GATEWAY; |
48 | | -} else { |
49 | | -process.env.OPENCLAW_TEST_MINIMAL_GATEWAY = previousMinimalGateway; |
50 | | -} |
51 | 43 | }); |
52 | 44 | |
53 | 45 | afterEach(async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。