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

推荐订阅源

云风的 BLOG
云风的 BLOG
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
博客园 - 司徒正美
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News
博客园 - 聂微东

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 daemon infra array assertions · openclaw/op...
shakkernerd · 2026-05-09 · via Recent Commits to openclaw:main

@@ -216,12 +216,12 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

216216

describe("findGatewayPidsOnPortSync", () => {

217217

it("returns [] when lsof exits with non-zero status", () => {

218218

mockSpawnSync.mockReturnValue({ error: null, status: 1, stdout: "", stderr: "" });

219-

expect(findGatewayPidsOnPortSync(18789)).toEqual([]);

219+

expect(findGatewayPidsOnPortSync(18789)).toStrictEqual([]);

220220

});

221221222222

it("logs warning when initial lsof scan exits with status > 1", () => {

223223

mockSpawnSync.mockReturnValue({ error: null, status: 2, stdout: "", stderr: "lsof error" });

224-

expect(findGatewayPidsOnPortSync(18789)).toEqual([]);

224+

expect(findGatewayPidsOnPortSync(18789)).toStrictEqual([]);

225225

expect(mockRestartWarn).toHaveBeenCalledWith(

226226

expect.stringContaining("lsof exited with status 2"),

227227

);

@@ -234,7 +234,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

234234

stdout: "",

235235

stderr: "",

236236

});

237-

expect(findGatewayPidsOnPortSync(18789)).toEqual([]);

237+

expect(findGatewayPidsOnPortSync(18789)).toStrictEqual([]);

238238

expect(mockRestartWarn).toHaveBeenCalledWith(

239239

expect.stringContaining("lsof failed during initial stale-pid scan"),

240240

);

@@ -427,7 +427,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

427427

stdout: lsofOutput([{ pid: otherPid, cmd: "nginx" }]),

428428

stderr: "",

429429

});

430-

expect(findGatewayPidsOnPortSync(18789)).toEqual([]);

430+

expect(findGatewayPidsOnPortSync(18789)).toStrictEqual([]);

431431

});

432432433433

it("forwards the spawnTimeoutMs argument to spawnSync", () => {

@@ -456,7 +456,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

456456

Object.defineProperty(process, "platform", { value: "win32", configurable: true });

457457

try {

458458

mockReadWindowsListeningPids.mockReturnValue([]);

459-

expect(findGatewayPidsOnPortSync(18789)).toEqual([]);

459+

expect(findGatewayPidsOnPortSync(18789)).toStrictEqual([]);

460460

expect(mockReadWindowsListeningPids).toHaveBeenCalledWith(18789, undefined);

461461

// lsof must NOT be invoked — Windows uses PowerShell/netstat

462462

expect(mockSpawnSync).not.toHaveBeenCalled();

@@ -519,7 +519,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

519519

describe("parsePidsFromLsofOutput (via findGatewayPidsOnPortSync stdout path)", () => {

520520

it("returns [] for empty lsof stdout (status 0, nothing listening)", () => {

521521

mockSpawnSync.mockReturnValue({ error: null, status: 0, stdout: "", stderr: "" });

522-

expect(findGatewayPidsOnPortSync(18789)).toEqual([]);

522+

expect(findGatewayPidsOnPortSync(18789)).toStrictEqual([]);

523523

});

524524525525

it("parses multiple openclaw pids from a single lsof output block", () => {

@@ -549,7 +549,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

549549

stdout: lsofOutput([{ pid: otherPid, cmd: "caddy" }]),

550550

stderr: "",

551551

});

552-

expect(findGatewayPidsOnPortSync(18789)).toEqual([]);

552+

expect(findGatewayPidsOnPortSync(18789)).toStrictEqual([]);

553553

});

554554

});

555555

@@ -684,7 +684,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

684684

it("returns [] and does not call process.kill when port has no listeners", () => {

685685

mockSpawnSync.mockReturnValue({ error: null, status: 0, stdout: "", stderr: "" });

686686

const killSpy = vi.spyOn(process, "kill").mockReturnValue(true);

687-

expect(cleanStaleGatewayProcessesSync()).toEqual([]);

687+

expect(cleanStaleGatewayProcessesSync()).toStrictEqual([]);

688688

expect(killSpy).not.toHaveBeenCalled();

689689

});

690690

@@ -889,7 +889,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

889889

mockResolveGatewayPort.mockImplementationOnce(() => {

890890

throw new Error("config read error");

891891

});

892-

expect(cleanStaleGatewayProcessesSync()).toEqual([]);

892+

expect(cleanStaleGatewayProcessesSync()).toStrictEqual([]);

893893

});

894894895895

it("returns gracefully when lsof is unavailable from the start", () => {

@@ -900,7 +900,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

900900

stderr: "",

901901

});

902902

const killSpy = vi.spyOn(process, "kill").mockReturnValue(true);

903-

expect(cleanStaleGatewayProcessesSync()).toEqual([]);

903+

expect(cleanStaleGatewayProcessesSync()).toStrictEqual([]);

904904

expect(killSpy).not.toHaveBeenCalled();

905905

});

906906

@@ -970,7 +970,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

970970

});

971971

const killSpy = vi.spyOn(process, "kill").mockReturnValue(true);

972972973-

expect(cleanStaleGatewayProcessesSync()).toEqual([]);

973+

expect(cleanStaleGatewayProcessesSync()).toStrictEqual([]);

974974

expect(mockReadWindowsListeningPidsResult).toHaveBeenCalledWith(18789, 400);

975975

expect(mockRestartWarn).toHaveBeenCalledWith(

976976

expect.stringContaining("port 18789 still in use after 2000ms"),

@@ -1000,7 +1000,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

10001000

mockReadWindowsProcessArgsResult.mockReturnValue({ ok: false, permanent: false });

10011001

const killSpy = vi.spyOn(process, "kill").mockReturnValue(true);

100210021003-

expect(cleanStaleGatewayProcessesSync()).toEqual([]);

1003+

expect(cleanStaleGatewayProcessesSync()).toStrictEqual([]);

10041004

expect(mockReadWindowsProcessArgsResult).toHaveBeenCalledWith(stalePid, undefined);

10051005

expect(mockRestartWarn).toHaveBeenCalledWith(

10061006

expect.stringContaining("port 18789 still in use after 2000ms"),

@@ -1048,7 +1048,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

10481048

return true;

10491049

});

105010501051-

expect(cleanStaleGatewayProcessesSync()).toEqual([]);

1051+

expect(cleanStaleGatewayProcessesSync()).toStrictEqual([]);

10521052

expect(mockSpawnSync).toHaveBeenCalledWith(

10531053

"C:\\Windows\\System32\\taskkill.exe",

10541054

["/T", "/PID", String(stalePid)],

@@ -1103,7 +1103,7 @@ describe.skipIf(isWindows)("restart-stale-pids", () => {

11031103

fakeNow += ms;

11041104

});

110511051106-

expect(cleanStaleGatewayProcessesSync()).toEqual([]);

1106+

expect(cleanStaleGatewayProcessesSync()).toStrictEqual([]);

11071107

expect(mockSpawnSync).toHaveBeenNthCalledWith(

11081108

1,

11091109

"C:\\Windows\\System32\\taskkill.exe",