Skip to content

Commit 6e03780

Browse files
committed
test(server): preserve warnings for relay unregister output
1 parent acf692f commit 6e03780

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎apps/server/src/cloud/ManagedEndpointRuntime.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ describe("CloudManagedEndpointRuntime", () => {
156156
"2026-10-06T00:00:00Z INF Unregistered tunnel connection connIndex=0 event=0 ip=198.41.200.23",
157157
),
158158
).toBe("unregistered");
159+
for (const level of ["ERR", "WRN", "FTL", "PNC"]) {
160+
expect(
161+
ManagedEndpointRuntime.classifyRelayClientOutput(
162+
`2026-10-06T00:00:00Z ${level} Unregistered tunnel connection connIndex=0`,
163+
),
164+
).toBe("warning");
165+
}
159166
for (const line of [
160167
"2026-10-06T00:00:00Z INF Initiating graceful shutdown due to signal terminated ...",
161168
"2026-10-06T00:00:00Z INF Starting metrics server on 127.0.0.1:20241/metrics",

0 commit comments

Comments
 (0)