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

推荐订阅源

V
V2EX
量子位
博客园 - 司徒正美
IT之家
IT之家
V
Visual Studio Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
Vercel News
Vercel News
B
Blog
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
小众软件
小众软件
罗磊的独立博客
博客园 - 叶小钗
雷峰网
雷峰网
Martin Fowler
Martin Fowler
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学

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: dedupe status scan mock calls · openclaw/openclaw@3...
steipete · 2026-05-12 · via Recent Commits to openclaw:main

@@ -71,6 +71,22 @@ function configureScanStatus(

7171

mocks.callGateway.mockResolvedValue(null);

7272

}

737374+

function firstCallArg(mock: { mock: { calls: unknown[][] } }, label: string): unknown {

75+

const arg = mock.mock.calls.at(0)?.at(0);

76+

if (arg === undefined) {

77+

throw new Error(`expected ${label}`);

78+

}

79+

return arg;

80+

}

81+82+

function firstBuildChannelsTableCall(): unknown[] {

83+

const call = mocks.buildChannelsTable.mock.calls.at(0);

84+

if (!call) {

85+

throw new Error("expected buildChannelsTable call");

86+

}

87+

return call;

88+

}

89+7490

describe("scanStatus", () => {

7591

it("passes sourceConfig into buildChannelsTable for summary-mode status output", async () => {

7692

const sourceConfig = createStatusScanConfig({

@@ -90,7 +106,7 @@ describe("scanStatus", () => {

90106

await scanStatus({ json: false }, {} as never);

9110792108

expect(mocks.buildChannelsTable).toHaveBeenCalledOnce();

93-

expect(mocks.buildChannelsTable.mock.calls[0]).toStrictEqual([

109+

expect(firstBuildChannelsTableCall()).toStrictEqual([

94110

resolvedConfig,

95111

{

96112

showSecrets: true,

@@ -128,7 +144,7 @@ describe("scanStatus", () => {

128144

}),

129145

).toBe(false);

130146

expect(mocks.buildChannelsTable).toHaveBeenCalledOnce();

131-

expect(mocks.buildChannelsTable.mock.calls[0]).toStrictEqual([

147+

expect(firstBuildChannelsTableCall()).toStrictEqual([

132148

cfg,

133149

{

134150

showSecrets: true,

@@ -167,7 +183,7 @@ describe("scanStatus", () => {

167183

await scanStatus({ json: false, deep: true, timeoutMs: 5000 }, {} as never);

168184169185

expect(mocks.callGateway).toHaveBeenCalledOnce();

170-

expect(mocks.callGateway.mock.calls[0]?.[0]).toStrictEqual({

186+

expect(firstCallArg(mocks.callGateway, "callGateway args")).toStrictEqual({

171187

config: cfg,

172188

method: "channels.status",

173189

params: {

@@ -177,7 +193,7 @@ describe("scanStatus", () => {

177193

timeoutMs: 2500,

178194

});

179195

expect(mocks.buildChannelsTable).toHaveBeenCalledOnce();

180-

expect(mocks.buildChannelsTable.mock.calls[0]).toStrictEqual([

196+

expect(firstBuildChannelsTableCall()).toStrictEqual([

181197

cfg,

182198

{

183199

showSecrets: true,

@@ -276,7 +292,7 @@ describe("scanStatus", () => {

276292

await scanStatus({ json: true }, {} as never);

277293278294

expect(mocks.getMemorySearchManager).toHaveBeenCalledOnce();

279-

expect(mocks.getMemorySearchManager.mock.calls[0]?.[0]).toStrictEqual({

295+

expect(firstCallArg(mocks.getMemorySearchManager, "memory search manager args")).toStrictEqual({

280296

cfg: createStatusMemorySearchConfig(),

281297

agentId: "main",

282298

purpose: "status",

@@ -305,7 +321,7 @@ describe("scanStatus", () => {

305321

// Verify plugin logs were routed to stderr during loading and restored after

306322

expect(loggingStateRef.forceConsoleToStderr).toBe(false);

307323

expect(mocks.probeGateway).toHaveBeenCalledOnce();

308-

expect(mocks.probeGateway.mock.calls[0]?.[0]).toStrictEqual({

324+

expect(firstCallArg(mocks.probeGateway, "probeGateway args")).toStrictEqual({

309325

url: "ws://127.0.0.1:18789",

310326

auth: {},

311327

preauthHandshakeTimeoutMs: undefined,