From fc0d374390569344419ce02616acb55b8d1cc670 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 2 Mar 2026 18:00:11 +0000 Subject: [PATCH] test(perf): drop duplicate gateway config patch validation case --- src/gateway/server.config-patch.test.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/gateway/server.config-patch.test.ts b/src/gateway/server.config-patch.test.ts index 12984d261b3..e26e878ca70 100644 --- a/src/gateway/server.config-patch.test.ts +++ b/src/gateway/server.config-patch.test.ts @@ -54,25 +54,6 @@ describe("gateway config methods", () => { expect(res.ok).toBe(false); expect(res.error?.message ?? "").toContain("raw must be an object"); }); - - it("rejects config.patch when tailscale serve/funnel is paired with non-loopback bind", async () => { - const res = await rpcReq<{ - ok?: boolean; - error?: { details?: { issues?: Array<{ path?: string }> } }; - }>(requireWs(), "config.patch", { - raw: JSON.stringify({ - gateway: { - bind: "lan", - tailscale: { mode: "serve" }, - }, - }), - }); - expect(res.ok).toBe(false); - expect(res.error?.message ?? "").toContain("invalid config"); - const issues = (res.error as { details?: { issues?: Array<{ path?: string }> } } | undefined) - ?.details?.issues; - expect(issues?.some((issue) => issue.path === "gateway.bind")).toBe(true); - }); }); describe("gateway server sessions", () => {