test: simplify doctor warning collection · openclaw/openclaw@3e56f86
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1352,7 +1352,13 @@ async function collectDoctorWarnings(config: Record<string, unknown>): Promise<s
|
1352 | 1352 | config, |
1353 | 1353 | run: loadAndMaybeMigrateDoctorConfig, |
1354 | 1354 | }); |
1355 | | -return noteSpy.mock.calls.filter((call) => call[1] === "Doctor warnings").map((call) => call[0]); |
| 1355 | +const warnings: string[] = []; |
| 1356 | +for (const [message, title] of noteSpy.mock.calls) { |
| 1357 | +if (title === "Doctor warnings") { |
| 1358 | +warnings.push(message); |
| 1359 | +} |
| 1360 | +} |
| 1361 | +return warnings; |
1356 | 1362 | } |
1357 | 1363 | |
1358 | 1364 | type DiscordGuildRule = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。