fix(cli): let browser start honor --timeout (#31365)

* fix(cli): respect browser start timeout option

* test(cli): cover browser start timeout propagation

* changelog: note browser start timeout propagation fix
This commit is contained in:
Vincent Koc
2026-03-01 23:16:23 -08:00
committed by GitHub
parent f4785c1a7b
commit db28dda120
3 changed files with 89 additions and 9 deletions

View File

@@ -34,15 +34,11 @@ async function runBrowserToggle(
parent: BrowserParentOpts,
params: { profile?: string; path: string },
) {
await callBrowserRequest(
parent,
{
method: "POST",
path: params.path,
query: params.profile ? { profile: params.profile } : undefined,
},
{ timeoutMs: 15000 },
);
await callBrowserRequest(parent, {
method: "POST",
path: params.path,
query: params.profile ? { profile: params.profile } : undefined,
});
const status = await fetchBrowserStatus(parent, params.profile);
if (parent?.json) {
defaultRuntime.log(JSON.stringify(status, null, 2));