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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
美团技术团队
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
M
MIT News - Artificial intelligence
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
A
About on SuperTechFans
Recent Announcements
Recent Announcements
D
Docker
Vercel News
Vercel News
Engineering at Meta
Engineering at Meta
腾讯CDC
Martin Fowler
Martin Fowler
阮一峰的网络日志
阮一峰的网络日志

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 gateway auth probe assertions · openclaw/op...
steipete · 2026-05-08 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -189,7 +189,7 @@ describe("issue #13992 regression - cron jobs skip execution", () => {

189189
190190

const state = createMockCronStateForJobs({ jobs: [dueJob, malformedJob], nowMs: now });

191191
192-

expect(() => recomputeNextRunsForMaintenance(state)).not.toThrow();

192+

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

193193

expect(dueJob.state.nextRunAtMs).toBe(pastDue);

194194

expect(malformedJob.state.nextRunAtMs).toBeUndefined();

195195

expect(malformedJob.state.scheduleErrorCount).toBe(1);

Original file line numberDiff line numberDiff line change

@@ -19,12 +19,12 @@ describe("live-agent-probes", () => {

1919

});

2020
2121

it("accepts only cat for the shared image probe reply", () => {

22-

expect(() => assertLiveImageProbeReply("cat")).not.toThrow();

23-

expect(() =>

22+

expect(assertLiveImageProbeReply("cat")).toBeUndefined();

23+

expect(

2424

assertLiveImageProbeReply(

2525

"model metadata for `gpt-5.5` not found. defaulting to fallback metadata; this can degrade performance and cause issues.cat",

2626

),

27-

).not.toThrow();

27+

).toBeUndefined();

2828

expect(() => assertLiveImageProbeReply("horse")).toThrow("image probe expected 'cat'");

2929

expect(() => assertLiveImageProbeReply("caterpillar")).toThrow("image probe expected 'cat'");

3030

});

@@ -77,7 +77,7 @@ describe("live-agent-probes", () => {

7777

});

7878
7979

it("validates cron cli job shape for the shared live probe", () => {

80-

expect(() =>

80+

expect(

8181

assertCronJobMatches({

8282

job: {

8383

name: "live-mcp-abc",

@@ -90,6 +90,6 @@ describe("live-agent-probes", () => {

9090

expectedMessage: "probe-abc",

9191

expectedSessionKey: "agent:dev:test",

9292

}),

93-

).not.toThrow();

93+

).toBeUndefined();

9494

});

9595

});

Original file line numberDiff line numberDiff line change

@@ -515,36 +515,36 @@ describe("assertGatewayAuthNotKnownWeak", () => {

515515

},

516516

);

517517
518-

it("does not throw on an empty token (falls through to generation path)", () => {

519-

expect(() =>

518+

it("allows an empty token to fall through to generation path", () => {

519+

expect(

520520

assertGatewayAuthNotKnownWeak({

521521

mode: "token",

522522

modeSource: "config",

523523

token: "",

524524

allowTailscale: false,

525525

}),

526-

).not.toThrow();

526+

).toBeUndefined();

527527

});

528528
529-

it("does not throw on a real token", () => {

530-

expect(() =>

529+

it("allows a real token", () => {

530+

expect(

531531

assertGatewayAuthNotKnownWeak({

532532

mode: "token",

533533

modeSource: "config",

534534

token: "a-legit-random-token-0123456789abcdef",

535535

allowTailscale: false,

536536

}),

537-

).not.toThrow();

537+

).toBeUndefined();

538538

});

539539
540-

it("does not throw on the none mode", () => {

541-

expect(() =>

540+

it("allows the none mode", () => {

541+

expect(

542542

assertGatewayAuthNotKnownWeak({

543543

mode: "none",

544544

modeSource: "default",

545545

allowTailscale: false,

546546

}),

547-

).not.toThrow();

547+

).toBeUndefined();

548548

});

549549

});

550550

@@ -569,7 +569,7 @@ describe("assertHooksTokenSeparateFromGatewayAuth", () => {

569569

});

570570
571571

it("allows hooks token when gateway auth is not token mode", () => {

572-

expect(() =>

572+

expect(

573573

assertHooksTokenSeparateFromGatewayAuth({

574574

cfg: {

575575

hooks: {

@@ -584,11 +584,11 @@ describe("assertHooksTokenSeparateFromGatewayAuth", () => {

584584

allowTailscale: false,

585585

},

586586

}),

587-

).not.toThrow();

587+

).toBeUndefined();

588588

});

589589
590590

it("allows matching values when hooks are disabled", () => {

591-

expect(() =>

591+

expect(

592592

assertHooksTokenSeparateFromGatewayAuth({

593593

cfg: {

594594

hooks: {

@@ -603,6 +603,6 @@ describe("assertHooksTokenSeparateFromGatewayAuth", () => {

603603

allowTailscale: false,

604604

},

605605

}),

606-

).not.toThrow();

606+

).toBeUndefined();

607607

});

608608

});