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

推荐订阅源

Google DeepMind News
Google DeepMind News
I
InfoQ
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
GbyAI
GbyAI
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
美团技术团队
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
M
MIT News - Artificial intelligence
D
Docker
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 叶小钗

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: guard browser chrome mock calls · openclaw/openclaw...
steipete · 2026-05-12 · via Recent Commits to openclaw:main

@@ -86,9 +86,25 @@ function makeFakeProc(overrides: Partial<FakeProc> = {}): FakeProc {

8686

return Object.assign(proc, overrides);

8787

}

888889-

function effectiveSpawnCommand(call: unknown[] | undefined): unknown {

90-

const command = call?.[0];

91-

const args = call?.[1];

89+

function requireSpawnCall(index = 0): unknown[] {

90+

const call = spawnMock.mock.calls[index];

91+

if (!call) {

92+

throw new Error(`expected spawn call #${index + 1}`);

93+

}

94+

return call;

95+

}

96+97+

function requireSpawnOptions(index = 0): { env?: NodeJS.ProcessEnv } {

98+

const options = requireSpawnCall(index)[2];

99+

if (!options || typeof options !== "object") {

100+

throw new Error(`expected spawn options for call #${index + 1}`);

101+

}

102+

return options as { env?: NodeJS.ProcessEnv };

103+

}

104+105+

function effectiveSpawnCommand(call: unknown[]): unknown {

106+

const command = call[0];

107+

const args = call[1];

92108

if (

93109

command === "/bin/sh" &&

94110

Array.isArray(args) &&

@@ -454,7 +470,7 @@ describe("chrome.ts internal", () => {

454470

const running = await launchOpenClawChrome(makeResolved(), profile);

455471

expect(running.pid).toBe(4242);

456472

expect(spawnCalls).toBeGreaterThanOrEqual(1);

457-

const spawnOptions = spawnMock.mock.calls[0]?.[2] as { env?: NodeJS.ProcessEnv };

473+

const spawnOptions = requireSpawnOptions();

458474

expect(spawnOptions.env?.HTTP_PROXY).toBeUndefined();

459475

expect(spawnOptions.env?.HTTPS_PROXY).toBeUndefined();

460476

expect(spawnOptions.env?.NO_PROXY).toBeUndefined();

@@ -491,7 +507,7 @@ describe("chrome.ts internal", () => {

491507

executablePath: "/tmp/global-chrome",

492508

} as ResolvedBrowserConfig;

493509

const running = await launchOpenClawChrome(resolved, profile);

494-

expect(effectiveSpawnCommand(spawnMock.mock.calls[0])).toBe("/tmp/profile-chrome");

510+

expect(effectiveSpawnCommand(requireSpawnCall())).toBe("/tmp/profile-chrome");

495511

running.proc.kill?.("SIGTERM");

496512

},

497513

});