





















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