mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-07 10:06:21 +00:00
fix(cli): honor check navigation timeout (#2860)
* fix(cli): honor check navigation timeout * test(cli): clarify diagnostic timeout precedence
This commit is contained in:
@@ -118,6 +118,23 @@ describe("resolveDiagnosticNavigationTimeoutMs", () => {
|
||||
resolveDiagnosticNavigationTimeoutMs({ PRODUCER_PAGE_NAVIGATION_TIMEOUT_MS: "invalid" }),
|
||||
).toBe(10_000);
|
||||
});
|
||||
|
||||
it("raises the diagnostic navigation budget to a larger caller-provided minimum", () => {
|
||||
expect(resolveDiagnosticNavigationTimeoutMs({}, 30_000)).toBe(30_000);
|
||||
});
|
||||
|
||||
it("does not let a caller-provided minimum shorten the default budget", () => {
|
||||
expect(resolveDiagnosticNavigationTimeoutMs({}, 3_000)).toBe(10_000);
|
||||
});
|
||||
|
||||
it("does not let a caller-provided minimum shorten the environment override", () => {
|
||||
expect(
|
||||
resolveDiagnosticNavigationTimeoutMs(
|
||||
{ PRODUCER_PAGE_NAVIGATION_TIMEOUT_MS: "90000" },
|
||||
30_000,
|
||||
),
|
||||
).toBe(90_000);
|
||||
});
|
||||
});
|
||||
|
||||
describe("parseCompositionEntryArg", () => {
|
||||
|
||||
Reference in New Issue
Block a user