mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test(perf): drop duplicate gateway config patch validation case
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user