fix: stabilize macos npm update smoke · openclaw/openclaw@d9486c6
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -484,12 +484,12 @@ describe("gateway bonjour advertiser", () => {
|
484 | 484 | expect(createService).toHaveBeenCalledTimes(2); |
485 | 485 | expect(advertise).toHaveBeenCalledTimes(2); |
486 | 486 | expect(destroy).toHaveBeenCalledTimes(1); |
487 | | -expect(shutdown).toHaveBeenCalledTimes(1); |
| 487 | +expect(shutdown).not.toHaveBeenCalled(); |
488 | 488 | expect(events).toEqual(["advertise:1", "destroy", "advertise:2"]); |
489 | 489 | |
490 | 490 | await started.stop(); |
491 | 491 | expect(destroy).toHaveBeenCalledTimes(2); |
492 | | -expect(shutdown).toHaveBeenCalledTimes(2); |
| 492 | +expect(shutdown).toHaveBeenCalledTimes(1); |
493 | 493 | }); |
494 | 494 | |
495 | 495 | it("treats probing-to-announcing churn as one unhealthy window", async () => { |
@@ -527,9 +527,10 @@ describe("gateway bonjour advertiser", () => {
|
527 | 527 | expect(createService).toHaveBeenCalledTimes(2); |
528 | 528 | expect(advertise).toHaveBeenCalledTimes(3); |
529 | 529 | expect(destroy).toHaveBeenCalledTimes(1); |
530 | | -expect(shutdown).toHaveBeenCalledTimes(1); |
| 530 | +expect(shutdown).not.toHaveBeenCalled(); |
531 | 531 | |
532 | 532 | await started.stop(); |
| 533 | +expect(shutdown).toHaveBeenCalledTimes(1); |
533 | 534 | }); |
534 | 535 | |
535 | 536 | it("normalizes hostnames with domains for service names", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。