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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
Last Week in AI
Last Week in AI
腾讯CDC
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
I
InfoQ
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
Y
Y Combinator Blog
H
Help Net Security
T
Tailwind CSS Blog
美团技术团队
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed

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: tighten maintenance command assertions · openclaw/o...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -52,13 +52,14 @@ describe("registerMaintenanceCommands doctor action", () => {

52525353

await runMaintenanceCli(["doctor", "--non-interactive", "--yes"]);

545455-

expect(doctorCommand).toHaveBeenCalledWith(

56-

runtime,

57-

expect.objectContaining({

58-

nonInteractive: true,

59-

yes: true,

60-

}),

61-

);

55+

expect(doctorCommand).toHaveBeenCalledTimes(1);

56+

const [runtimeArg, options] = doctorCommand.mock.calls[0] as unknown as [

57+

typeof runtime,

58+

Record<string, unknown>,

59+

];

60+

expect(runtimeArg).toBe(runtime);

61+

expect(options.nonInteractive).toBe(true);

62+

expect(options.yes).toBe(true);

6263

expect(runtime.exit).toHaveBeenCalledWith(0);

6364

});

6465

@@ -77,25 +78,27 @@ describe("registerMaintenanceCommands doctor action", () => {

77787879

await runMaintenanceCli(["doctor", "--fix"]);

798080-

expect(doctorCommand).toHaveBeenCalledWith(

81-

runtime,

82-

expect.objectContaining({

83-

repair: true,

84-

}),

85-

);

81+

expect(doctorCommand).toHaveBeenCalledTimes(1);

82+

const [runtimeArg, options] = doctorCommand.mock.calls[0] as unknown as [

83+

typeof runtime,

84+

Record<string, unknown>,

85+

];

86+

expect(runtimeArg).toBe(runtime);

87+

expect(options.repair).toBe(true);

8688

});

87898890

it("passes noOpen to dashboard command", async () => {

8991

dashboardCommand.mockResolvedValue(undefined);

90929193

await runMaintenanceCli(["dashboard", "--no-open"]);

929493-

expect(dashboardCommand).toHaveBeenCalledWith(

94-

runtime,

95-

expect.objectContaining({

96-

noOpen: true,

97-

}),

98-

);

95+

expect(dashboardCommand).toHaveBeenCalledTimes(1);

96+

const [runtimeArg, options] = dashboardCommand.mock.calls[0] as unknown as [

97+

typeof runtime,

98+

Record<string, unknown>,

99+

];

100+

expect(runtimeArg).toBe(runtime);

101+

expect(options.noOpen).toBe(true);

99102

});

100103101104

it("passes reset options to reset command", async () => {

@@ -110,15 +113,16 @@ describe("registerMaintenanceCommands doctor action", () => {

110113

"--dry-run",

111114

]);

112115113-

expect(resetCommand).toHaveBeenCalledWith(

114-

runtime,

115-

expect.objectContaining({

116-

scope: "full",

117-

yes: true,

118-

nonInteractive: true,

119-

dryRun: true,

120-

}),

121-

);

116+

expect(resetCommand).toHaveBeenCalledTimes(1);

117+

const [runtimeArg, options] = resetCommand.mock.calls[0] as unknown as [

118+

typeof runtime,

119+

Record<string, unknown>,

120+

];

121+

expect(runtimeArg).toBe(runtime);

122+

expect(options.scope).toBe("full");

123+

expect(options.yes).toBe(true);

124+

expect(options.nonInteractive).toBe(true);

125+

expect(options.dryRun).toBe(true);

122126

});

123127124128

it("passes uninstall options to uninstall command", async () => {

@@ -136,19 +140,20 @@ describe("registerMaintenanceCommands doctor action", () => {

136140

"--dry-run",

137141

]);

138142139-

expect(uninstallCommand).toHaveBeenCalledWith(

140-

runtime,

141-

expect.objectContaining({

142-

service: true,

143-

state: true,

144-

workspace: true,

145-

app: true,

146-

all: true,

147-

yes: true,

148-

nonInteractive: true,

149-

dryRun: true,

150-

}),

151-

);

143+

expect(uninstallCommand).toHaveBeenCalledTimes(1);

144+

const [runtimeArg, options] = uninstallCommand.mock.calls[0] as unknown as [

145+

typeof runtime,

146+

Record<string, unknown>,

147+

];

148+

expect(runtimeArg).toBe(runtime);

149+

expect(options.service).toBe(true);

150+

expect(options.state).toBe(true);

151+

expect(options.workspace).toBe(true);

152+

expect(options.app).toBe(true);

153+

expect(options.all).toBe(true);

154+

expect(options.yes).toBe(true);

155+

expect(options.nonInteractive).toBe(true);

156+

expect(options.dryRun).toBe(true);

152157

});

153158154159

it("exits with code 1 when dashboard fails", async () => {