test: relax browser act contract timeout on Windows
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user