



















@@ -150,11 +150,9 @@ describe("startGatewayDiscovery", () => {
150150151151expect(result.bonjourStop).toBeTypeOf("function");
152152await result.bonjourStop?.();
153-expect(logs.warn).toHaveBeenCalledWith(
154-expect.stringContaining(
155-"gateway discovery service timed out after 10ms (stuck-discovery, plugin=stuck-discovery)",
156-),
157-);
153+expect(logs.warn.mock.calls).toContainEqual([
154+"gateway discovery service timed out after 10ms (stuck-discovery, plugin=stuck-discovery); continuing startup",
155+]);
158156159157vi.useRealTimers();
160158});
@@ -229,7 +227,9 @@ describe("startGatewayDiscovery", () => {
229227expect(zoneParams.displayName).toBe("Lab Mac (OpenClaw)");
230228expect(zoneParams.tailnetIPv4).toBe("100.64.0.10");
231229expect(zoneParams.tailnetDns).toBe("gateway.tailnet.example.ts.net");
232-expect(logs.info).toHaveBeenCalledWith(expect.stringContaining("wide-area DNS-SD updated"));
230+expect(logs.info.mock.calls).toContainEqual([
231+"wide-area DNS-SD updated (openclaw.internal. → /tmp/openclaw.internal.db)",
232+]);
233233expect(result.bonjourStop).toBeNull();
234234});
235235});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。