test(ports): accept expected gateway bind · openclaw/openclaw@e71589a
brokemac79
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -231,10 +231,9 @@ describe("inspectPortUsage on Windows", () => {
|
231 | 231 | expect(result.listeners).toHaveLength(1); |
232 | 232 | expect(result.listeners[0]?.command).toBe("node.exe"); |
233 | 233 | expect(result.listeners[0]?.commandLine).toContain("openclaw"); |
234 | | -const gatewayRunningHints = result.hints.filter((hint) => |
235 | | -hint.includes("Gateway already running locally"), |
| 234 | +expect(result.hints.some((hint) => hint.includes("Gateway already running locally"))).toBe( |
| 235 | +false, |
236 | 236 | ); |
237 | | -expect(gatewayRunningHints.length).toBeGreaterThan(0); |
238 | 237 | }); |
239 | 238 | |
240 | 239 | it("falls back to wmic when PowerShell cannot read the command line", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。