test: stabilize tool search fetch timeout · openclaw/openclaw@05dee67
openclaw
·
2026-05-30
·
via Recent Commits to openclaw:main
scripts/tool-search-gateway-e2e.ts
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -155,7 +155,6 @@ export async function fetchJson(
|
155 | 155 | controller.abort(error); |
156 | 156 | reject(error); |
157 | 157 | }, timeoutMs); |
158 | | -timeout.unref?.(); |
159 | 158 | }); |
160 | 159 | |
161 | 160 | let response: Response; |
@@ -174,6 +173,7 @@ export async function fetchJson(
|
174 | 173 | }, |
175 | 174 | formatTooLargeMessage: bodyTooLargeErrorMessage, |
176 | 175 | timeoutPromise, |
| 176 | +signal: controller.signal, |
177 | 177 | }); |
178 | 178 | } finally { |
179 | 179 | if (timeout) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。