惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
大猫的无限游戏
大猫的无限游戏
博客园 - 司徒正美
D
Docker
T
The Blog of Author Tim Ferriss
罗磊的独立博客
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
J
Java Code Geeks
Jina AI
Jina AI
博客园 - 【当耐特】
C
Check Point Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: advertise bonjour warning checks · openclaw/opencla...
shakkernerd · 2026-05-13 · via Recent Commits to openclaw:main

@@ -47,7 +47,7 @@ function warnMessages(): string[] {

4747

}

48484949

function expectWarnContaining(fragment: string) {

50-

expect(warnMessages().some((message) => message.includes(fragment))).toBe(true);

50+

expect(warnMessages().join("\n")).toContain(fragment);

5151

}

52525353

function mockCall(mock: ReturnType<typeof vi.fn>, index = 0): unknown[] {

@@ -379,7 +379,7 @@ describe("gateway bonjour advertiser", () => {

379379

([event]) => event === "unhandledRejection",

380380

);

381381

expect(unhandledRejectionRegistration?.[1]).toBeTypeOf("function");

382-

expect(processOn.mock.calls.some(([event]) => event === "uncaughtException")).toBe(false);

382+

expect(processOn.mock.calls.map(([event]) => event)).not.toContain("uncaughtException");

383383384384

await started.stop();

385385

});

@@ -496,7 +496,7 @@ describe("gateway bonjour advertiser", () => {

496496

});

497497498498

expectWarnContaining("suppressing ciao cancellation");

499-

expect(warnMessages().some((message) => message.includes("restarting advertiser"))).toBe(true);

499+

expectWarnContaining("restarting advertiser");

500500

expect(destroy).toHaveBeenCalledTimes(1);

501501

expect(advertise).toHaveBeenCalledTimes(2);

502502

@@ -524,7 +524,7 @@ describe("gateway bonjour advertiser", () => {

524524525525

// allow promise rejection handler to run

526526

await Promise.resolve();

527-

expect(warnMessages().some((message) => message.includes("advertise failed"))).toBe(true);

527+

expectWarnContaining("advertise failed");

528528529529

// watchdog first retries, then recreates the advertiser after the service

530530

// stays unhealthy across multiple 5s ticks.

@@ -553,7 +553,7 @@ describe("gateway bonjour advertiser", () => {

553553

});

554554555555

expect(advertise).toHaveBeenCalledTimes(1);

556-

expect(warnMessages().some((message) => message.includes("advertise threw"))).toBe(true);

556+

expectWarnContaining("advertise threw");

557557558558

await started.stop();

559559

});

@@ -687,7 +687,7 @@ describe("gateway bonjour advertiser", () => {

687687688688

await vi.advanceTimersByTimeAsync(25_000);

689689690-

expect(warnMessages().some((message) => message.includes("restarting advertiser"))).toBe(true);

690+

expectWarnContaining("restarting advertiser");

691691

expect(createService).toHaveBeenCalledTimes(2);

692692

expect(advertise).toHaveBeenCalledTimes(2);

693693

expect(destroy).toHaveBeenCalledTimes(1);

@@ -756,11 +756,8 @@ describe("gateway bonjour advertiser", () => {

756756757757

expect(advertise).toHaveBeenCalledTimes(1);

758758

expect(createService).toHaveBeenCalledTimes(1);

759-

expect(

760-

warnMessages().every(

761-

(message) =>

762-

!message.includes("watchdog detected non-announced service; attempting re-advertise"),

763-

),

759+

expect(warnMessages().join("\n")).not.toContain(

760+

"watchdog detected non-announced service; attempting re-advertise",

764761

);

765762766763

await vi.advanceTimersByTimeAsync(10_000);