test: tighten gateway health auth assertions · openclaw/openclaw@7d20be5
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -217,7 +217,7 @@ describe("gateway auth compatibility baseline", () => {
|
217 | 217 | }); |
218 | 218 | expect(rotated.ok).toBe(true); |
219 | 219 | const rotatedToken = rotated.ok ? rotated.entry.token : ""; |
220 | | -expect(rotatedToken).toEqual(expect.any(String)); |
| 220 | +expect(rotatedToken).toBeTypeOf("string"); |
221 | 221 | expect(rotatedToken.length).toBeGreaterThan(0); |
222 | 222 | |
223 | 223 | const ws = await openWs(port); |
|
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -167,7 +167,7 @@ describe("gateway server health/presence", () => {
|
167 | 167 | await localHarness.close(); |
168 | 168 | const evt = await shutdownP; |
169 | 169 | const evtPayload = evt.payload as { reason?: unknown } | undefined; |
170 | | -expect(evtPayload?.reason).toEqual(expect.any(String)); |
| 170 | +expect(evtPayload?.reason).toBe("gateway stopping"); |
171 | 171 | }); |
172 | 172 | |
173 | 173 | test( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。