Skip to content

Commit 6899eff

Browse files
committed
test: cover provider timeout bare hostnames
1 parent 9e9feb5 commit 6899eff

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/agents/pi-embedded-runner/run/llm-idle-timeout.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ describe("resolveLlmIdleTimeoutMs", () => {
5050
expect(resolveLlmIdleTimeoutMs({ modelRequestTimeoutMs: 300_000 })).toBe(300_000);
5151
});
5252

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+
5362
it("honors short explicit provider request timeouts", () => {
5463
expect(resolveLlmIdleTimeoutMs({ modelRequestTimeoutMs: 30_000 })).toBe(30_000);
5564
});

0 commit comments

Comments
 (0)