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

推荐订阅源

WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
MyScale Blog
MyScale Blog
雷峰网
雷峰网
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
V
V2EX
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium
Vercel News
Vercel News
美团技术团队
人人都是产品经理
人人都是产品经理
The Cloudflare 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: clarify runtime event assertions · openclaw/opencla...
steipete · 2026-05-08 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1127,8 +1127,8 @@ describe("Initialization guard", () => {

11271127

it("ensureContextEnginesInitialized() is idempotent and registers legacy", async () => {

11281128

const { ensureContextEnginesInitialized } = await import("./init.js");

11291129
1130-

expect(() => ensureContextEnginesInitialized()).not.toThrow();

1131-

expect(() => ensureContextEnginesInitialized()).not.toThrow();

1130+

expect(ensureContextEnginesInitialized()).toBeUndefined();

1131+

expect(ensureContextEnginesInitialized()).toBeUndefined();

11321132
11331133

const ids = listContextEngineIds();

11341134

expect(ids).toContain("legacy");

Original file line numberDiff line numberDiff line change

@@ -234,8 +234,7 @@ describe("GatewayClient security checks", () => {

234234

onConnectError,

235235

});

236236
237-

// Should not throw

238-

expect(() => client.start()).not.toThrow();

237+

expect(client.start()).toBeUndefined();

239238
240239

expectSecurityConnectError(onConnectError);

241240

expect(wsInstances.length).toBe(0); // No WebSocket created

@@ -535,9 +534,7 @@ describe("GatewayClient close handling", () => {

535534

const client = createClientWithIdentity("dev-2", onClose);

536535
537536

client.start();

538-

expect(() => {

539-

getLatestWs().emitClose(1008, "unauthorized: device token mismatch");

540-

}).not.toThrow();

537+

expect(getLatestWs().emitClose(1008, "unauthorized: device token mismatch")).toBeUndefined();

541538
542539

expect(logDebugMock).toHaveBeenCalledWith(

543540

expect.stringContaining("failed clearing stale device-auth token"),

Original file line numberDiff line numberDiff line change

@@ -210,7 +210,7 @@ describe("GatewayClient", () => {

210210

});

211211
212212

try {

213-

expect(() => client.start()).not.toThrow();

213+

expect(client.start()).toBeUndefined();

214214

await connected;

215215

expect(onConnectError).not.toHaveBeenCalled();

216216

} finally {

Original file line numberDiff line numberDiff line change

@@ -552,6 +552,6 @@ describe("talk realtime gateway relay", () => {

552552

expect(() => createSession("conn-1")).toThrow(

553553

"Too many active realtime relay sessions for this connection",

554554

);

555-

expect(() => createSession("conn-2")).not.toThrow();

555+

expect(createSession("conn-2")).toBeDefined();

556556

});

557557

});

Original file line numberDiff line numberDiff line change

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

177177

enableConsoleCapture();

178178

const epipe = new Error("write EPIPE") as NodeJS.ErrnoException;

179179

epipe.code = "EPIPE";

180-

expect(() => stream.emit("error", epipe)).not.toThrow();

180+

expect(stream.emit("error", epipe)).toBe(true);

181181

});

182182
183183

it("rethrows non-EPIPE errors on stdout", () => {

Original file line numberDiff line numberDiff line change

@@ -48,12 +48,12 @@ describe("session lifecycle events", () => {

4848

const unsubscribeNoisy = onSessionLifecycleEvent(noisy.listener);

4949

const unsubscribeHealthy = onSessionLifecycleEvent(healthy.listener);

5050
51-

expect(() =>

51+

expect(

5252

emitSessionLifecycleEvent({

5353

sessionKey: "agent:main:main",

5454

reason: "resumed",

5555

}),

56-

).not.toThrow();

56+

).toBeUndefined();

5757
5858

expect(noisy.calls).toHaveLength(1);

5959

expect(healthy.calls).toHaveLength(1);