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

推荐订阅源

爱范儿
爱范儿
H
Help Net Security
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
博客园 - 叶小钗
Y
Y Combinator Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
C
Check Point Blog
Recent Announcements
Recent Announcements
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
B
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: tighten voice call tunnel assertions · openclaw/ope...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -77,13 +77,17 @@ describe("voice-call tunnels", () => {

77777878

emitNgrokUrl(proc, "https://abc.ngrok.io");

797980-

await expect(result).resolves.toMatchObject({

81-

publicUrl: "https://abc.ngrok.io/voice/webhook",

82-

provider: "ngrok",

83-

});

84-

expect(mocks.spawn).toHaveBeenCalledWith("ngrok", expect.arrayContaining(["http", "3334"]), {

85-

stdio: ["ignore", "pipe", "pipe"],

86-

});

80+

const tunnel = await result;

81+

expect(tunnel.publicUrl).toBe("https://abc.ngrok.io/voice/webhook");

82+

expect(tunnel.provider).toBe("ngrok");

83+

expect(tunnel.stop).toBeTypeOf("function");

84+

expect(mocks.spawn).toHaveBeenCalledWith(

85+

"ngrok",

86+

["http", "3334", "--log", "stdout", "--log-format", "json"],

87+

{

88+

stdio: ["ignore", "pipe", "pipe"],

89+

},

90+

);

8791

});

88928993

it("sets ngrok auth token before starting the tunnel", async () => {

@@ -99,9 +103,9 @@ describe("voice-call tunnels", () => {

99103

await vi.waitFor(() => expect(mocks.spawn).toHaveBeenCalledTimes(2));

100104

emitNgrokUrl(tunnelProc, "https://auth.ngrok.io");

101105102-

await expect(result).resolves.toMatchObject({

103-

publicUrl: "https://auth.ngrok.io/hook",

104-

});

106+

const tunnel = await result;

107+

expect(tunnel.publicUrl).toBe("https://auth.ngrok.io/hook");

108+

expect(tunnel.provider).toBe("ngrok");

105109

expect(mocks.spawn).toHaveBeenNthCalledWith(1, "ngrok", ["config", "add-authtoken", "token"], {

106110

stdio: ["ignore", "pipe", "pipe"],

107111

});

@@ -128,13 +132,20 @@ describe("voice-call tunnels", () => {

128132

await vi.waitFor(() => expect(mocks.spawn).toHaveBeenCalled());

129133

proc.close(0);

130134131-

await expect(result).resolves.toMatchObject({

132-

publicUrl: "https://host.tailnet.ts.net/voice/webhook",

133-

provider: "tailscale-serve",

134-

});

135+

const tunnel = await result;

136+

expect(tunnel.publicUrl).toBe("https://host.tailnet.ts.net/voice/webhook");

137+

expect(tunnel.provider).toBe("tailscale-serve");

138+

expect(tunnel.stop).toBeTypeOf("function");

135139

expect(mocks.spawn).toHaveBeenCalledWith(

136140

"tailscale",

137-

expect.arrayContaining(["serve", "--set-path", "/voice/webhook"]),

141+

[

142+

"serve",

143+

"--bg",

144+

"--yes",

145+

"--set-path",

146+

"/voice/webhook",

147+

"http://127.0.0.1:3334/voice/webhook",

148+

],

138149

{ stdio: ["ignore", "pipe", "pipe"] },

139150

);

140151

});

@@ -155,9 +166,8 @@ describe("voice-call tunnels", () => {

155166

const result = startTunnel({ provider: "ngrok", port: 3334, path: "/hook" });

156167

emitNgrokUrl(proc, "https://dispatch.ngrok.io");

157168158-

await expect(result).resolves.toMatchObject({

159-

publicUrl: "https://dispatch.ngrok.io/hook",

160-

provider: "ngrok",

161-

});

169+

const tunnel = await result;

170+

expect(tunnel?.publicUrl).toBe("https://dispatch.ngrok.io/hook");

171+

expect(tunnel?.provider).toBe("ngrok");

162172

});

163173

});