test: cover provider timeout bare hostnames · openclaw/openclaw@6899eff
shakkernerd
·
2026-05-20
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner/run
| Original file line number | Diff line number | Diff line change |
|---|
@@ -50,6 +50,15 @@ describe("resolveLlmIdleTimeoutMs", () => {
|
50 | 50 | expect(resolveLlmIdleTimeoutMs({ modelRequestTimeoutMs: 300_000 })).toBe(300_000); |
51 | 51 | }); |
52 | 52 | |
| 53 | +it("honors explicit provider timeouts for self-hosted bare hostnames", () => { |
| 54 | +expect( |
| 55 | +resolveLlmIdleTimeoutMs({ |
| 56 | +model: { baseUrl: "http://cerebro-mac:8080/v1" }, |
| 57 | +modelRequestTimeoutMs: 600_000, |
| 58 | +}), |
| 59 | +).toBe(600_000); |
| 60 | +}); |
| 61 | + |
53 | 62 | it("honors short explicit provider request timeouts", () => { |
54 | 63 | expect(resolveLlmIdleTimeoutMs({ modelRequestTimeoutMs: 30_000 })).toBe(30_000); |
55 | 64 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。