test(perf): drop duplicate gateway config patch validation case

This commit is contained in:
Peter Steinberger
2026-03-02 18:00:11 +00:00
parent 0ebe0480fa
commit fc0d374390

View File

@@ -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", () => {