test: relax browser act contract timeout on Windows

This commit is contained in:
Peter Steinberger
2026-01-15 05:29:32 +00:00
parent 7d4f2d9aed
commit ad46e95df9
2 changed files with 68 additions and 63 deletions

View File

@@ -263,7 +263,11 @@ describe("browser control server", () => {
return (await res.json()) as T; return (await res.json()) as T;
}; };
it("agent contract: form + layout act commands", async () => { const slowTimeoutMs = process.platform === "win32" ? 40_000 : 20_000;
it(
"agent contract: form + layout act commands",
async () => {
const base = await startServerAndBase(); const base = await startServerAndBase();
const select = (await postJson(`${base}/act`, { const select = (await postJson(`${base}/act`, {
@@ -328,7 +332,9 @@ describe("browser control server", () => {
fn: "() => 1", fn: "() => 1",
ref: undefined, ref: undefined,
}); });
}, 20_000); },
slowTimeoutMs,
);
it("agent contract: hooks + response + downloads + screenshot", async () => { it("agent contract: hooks + response + downloads + screenshot", async () => {
const base = await startServerAndBase(); const base = await startServerAndBase();

View File

@@ -134,8 +134,7 @@ export async function finalizeOnboardingWizard(options: FinalizeOnboardingOption
if ( if (
!loaded || !loaded ||
(loaded && (loaded && (await service.isLoaded({ profile: process.env.CLAWDBOT_PROFILE })) === false)
(await service.isLoaded({ profile: process.env.CLAWDBOT_PROFILE })) === false)
) { ) {
const devMode = const devMode =
process.argv[1]?.includes(`${path.sep}src${path.sep}`) && process.argv[1]?.endsWith(".ts"); process.argv[1]?.includes(`${path.sep}src${path.sep}`) && process.argv[1]?.endsWith(".ts");