mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 01:30:43 +00:00
test: tighten gateway health auth assertions
This commit is contained in:
@@ -217,7 +217,7 @@ describe("gateway auth compatibility baseline", () => {
|
||||
});
|
||||
expect(rotated.ok).toBe(true);
|
||||
const rotatedToken = rotated.ok ? rotated.entry.token : "";
|
||||
expect(rotatedToken).toEqual(expect.any(String));
|
||||
expect(rotatedToken).toBeTypeOf("string");
|
||||
expect(rotatedToken.length).toBeGreaterThan(0);
|
||||
|
||||
const ws = await openWs(port);
|
||||
|
||||
@@ -167,7 +167,7 @@ describe("gateway server health/presence", () => {
|
||||
await localHarness.close();
|
||||
const evt = await shutdownP;
|
||||
const evtPayload = evt.payload as { reason?: unknown } | undefined;
|
||||
expect(evtPayload?.reason).toEqual(expect.any(String));
|
||||
expect(evtPayload?.reason).toBe("gateway stopping");
|
||||
});
|
||||
|
||||
test(
|
||||
|
||||
Reference in New Issue
Block a user