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

推荐订阅源

S
SegmentFault 最新的问题
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
博客园 - Franky
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
IT之家
IT之家
美团技术团队
博客园 - 司徒正美
Martin Fowler
Martin Fowler
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
雷峰网
雷峰网
B
Blog
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
D
Docker
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿

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
fix(e2e): cancel ClickClack fixture bodies · openclaw/ope...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -55,14 +55,15 @@ async function withClickClackFixtureResponse(url, init, consume, options = {}) {

5555

const controller = new AbortController();

5656

const timeoutError = new Error(`${url} timed out after ${timeoutMs}ms`);

5757

let timer;

58+

let response;

5859

const timeoutPromise = new Promise((_resolve, reject) => {

5960

timer = setTimeout(() => {

6061

controller.abort(timeoutError);

6162

reject(timeoutError);

6263

}, timeoutMs);

6364

});

6465

try {

65-

const response = await Promise.race([

66+

response = await Promise.race([

6667

fetch(url, {

6768

...init,

6869

signal: controller.signal,

@@ -72,6 +73,7 @@ async function withClickClackFixtureResponse(url, init, consume, options = {}) {

7273

return await consume(response, { timeoutPromise });

7374

} finally {

7475

clearTimeout(timer);

76+

await response?.body?.cancel?.().catch(() => undefined);

7577

}

7678

}

7779
Original file line numberDiff line numberDiff line change

@@ -59,6 +59,17 @@ async function withEnv<T>(env: Record<string, string>, callback: () => Promise<T

5959

}

6060

}

6161
62+

async function waitUntil(matches: () => boolean, label: string): Promise<void> {

63+

const startedAt = Date.now();

64+

while (Date.now() - startedAt < 1000) {

65+

if (matches()) {

66+

return;

67+

}

68+

await new Promise((resolve) => setTimeout(resolve, 20));

69+

}

70+

throw new Error(`timed out waiting for ${label}`);

71+

}

72+
6273

async function startTcpFixtureServer(handler: (socket: Socket) => void): Promise<{

6374

port: number;

6475

stop: () => Promise<void>;

@@ -303,6 +314,33 @@ describe("release user journey assertions", () => {

303314

}

304315

});

305316
317+

it("cancels successful ClickClack inbound response bodies", async () => {

318+

const root = mkdtempSync(path.join(tmpdir(), "openclaw-release-user-assertions-"));

319+

const home = path.join(root, "home");

320+

let socketClosed = false;

321+

const server = await startTcpFixtureServer((socket) => {

322+

socket.on("close", () => {

323+

socketClosed = true;

324+

});

325+

socket.write("HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nleft-open");

326+

});

327+
328+

try {

329+

await expect(

330+

withEnv({ HOME: home, OPENCLAW_RELEASE_USER_JOURNEY_HTTP_TIMEOUT_MS: "1000" }, () =>

331+

runReleaseUserJourneyAssertion("post-clickclack-inbound", [

332+

`http://127.0.0.1:${server.port}`,

333+

"hello",

334+

]),

335+

),

336+

).resolves.toBeUndefined();

337+

await waitUntil(() => socketClosed, "ClickClack inbound socket close");

338+

} finally {

339+

await server.stop();

340+

rmSync(root, { force: true, recursive: true });

341+

}

342+

});

343+
306344

it("bounds stalled ClickClack fixture HTTP probes", async () => {

307345

const root = mkdtempSync(path.join(tmpdir(), "openclaw-release-user-assertions-"));

308346

const home = path.join(root, "home");