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

推荐订阅源

D
Docker
I
InfoQ
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
Y
Y Combinator Blog
博客园_首页
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Engineering at Meta
Engineering at Meta
B
Blog
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
F
Fortinet All Blogs
月光博客
月光博客
GbyAI
GbyAI

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 discord internal client assertions · opencl...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -116,7 +116,24 @@ describe("Client.deployCommands", () => {

116116

await client.deployCommands({ mode: "overwrite" });

117117118118

expect(put).toHaveBeenCalledWith(Routes.applicationGuildCommands("app1", "g1"), {

119-

body: [expect.objectContaining({ name: "one" }), expect.objectContaining({ name: "two" })],

119+

body: [

120+

{

121+

name: "one",

122+

description: "one command",

123+

type: ApplicationCommandType.ChatInput,

124+

integration_types: [0, 1],

125+

contexts: [0, 1, 2],

126+

default_member_permissions: null,

127+

},

128+

{

129+

name: "two",

130+

description: "two command",

131+

type: ApplicationCommandType.ChatInput,

132+

integration_types: [0, 1],

133+

contexts: [0, 1, 2],

134+

default_member_permissions: null,

135+

},

136+

],

120137

});

121138

expect(put).toHaveBeenCalledTimes(2);

122139

});

@@ -247,19 +264,25 @@ describe("Client.deployCommands", () => {

247264248265

await client.deployCommands({ mode: "reconcile" });

249266250-

expect(patch).toHaveBeenCalledWith(

251-

Routes.applicationCommand("app1", "cmd1"),

252-

expect.objectContaining({

253-

body: expect.objectContaining({

254-

options: [

255-

expect.objectContaining({

256-

name_localizations: { de: "wert" },

257-

description_localizations: { de: "Wert" },

258-

}),

259-

],

260-

}),

261-

}),

262-

);

267+

expect(patch).toHaveBeenCalledWith(Routes.applicationCommand("app1", "cmd1"), {

268+

body: {

269+

name: "one",

270+

description: "one command",

271+

type: ApplicationCommandType.ChatInput,

272+

options: [

273+

{

274+

type: 3,

275+

name: "value",

276+

name_localizations: { de: "wert" },

277+

description: "Value",

278+

description_localizations: { de: "Wert" },

279+

},

280+

],

281+

integration_types: [0, 1],

282+

contexts: [0, 1, 2],

283+

default_member_permissions: null,

284+

},

285+

});

263286

expect(post).not.toHaveBeenCalled();

264287

expect(deleteRequest).not.toHaveBeenCalled();

265288

});

@@ -344,12 +367,15 @@ describe("Client gateway event queue", () => {

344367

eventQueue: {},

345368

});

346369347-

expect(client.getRuntimeMetrics().eventQueue).toEqual(

348-

expect.objectContaining({

349-

maxQueueSize: 10_000,

350-

maxConcurrency: 50,

351-

}),

352-

);

370+

expect(client.getRuntimeMetrics().eventQueue).toEqual({

371+

queueSize: 0,

372+

processing: 0,

373+

processed: 0,

374+

dropped: 0,

375+

timeouts: 0,

376+

maxQueueSize: 10_000,

377+

maxConcurrency: 50,

378+

});

353379

});

354380355381

it("times out hung queued listeners", async () => {

@@ -371,9 +397,15 @@ describe("Client gateway event queue", () => {

371397

expect(errorSpy).toHaveBeenCalledWith(

372398

"[EventQueue] Listener Object timed out after 10ms for event READY",

373399

);

374-

expect(client.getRuntimeMetrics().eventQueue).toEqual(

375-

expect.objectContaining({ processed: 1, timeouts: 1 }),

376-

);

400+

expect(client.getRuntimeMetrics().eventQueue).toEqual({

401+

queueSize: 0,

402+

processing: 0,

403+

processed: 1,

404+

dropped: 0,

405+

timeouts: 1,

406+

maxQueueSize: 10_000,

407+

maxConcurrency: 1,

408+

});

377409

});

378410379411

it("limits queued listener concurrency", async () => {