test: relax timeouts for slow runs

This commit is contained in:
Peter Steinberger
2026-01-05 01:35:11 +01:00
parent f90eea5195
commit d58828ebd7
3 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ describe("browser screenshot normalization", () => {
expect(Number(meta.height)).toBeLessThanOrEqual(2000); expect(Number(meta.height)).toBeLessThanOrEqual(2000);
expect(normalized.buffer[0]).toBe(0xff); expect(normalized.buffer[0]).toBe(0xff);
expect(normalized.buffer[1]).toBe(0xd8); expect(normalized.buffer[1]).toBe(0xd8);
}, 30_000); }, 120_000);
it("keeps already-small screenshots unchanged", async () => { it("keeps already-small screenshots unchanged", async () => {
const jpeg = await sharp({ const jpeg = await sharp({

View File

@@ -75,7 +75,7 @@ describe("gateway SIGTERM", () => {
child = null; child = null;
}); });
it("exits 0 on SIGTERM", { timeout: 90_000 }, async () => { it("exits 0 on SIGTERM", { timeout: 180_000 }, async () => {
const port = await getFreePort(); const port = await getFreePort();
const stateDir = fs.mkdtempSync( const stateDir = fs.mkdtempSync(
path.join(os.tmpdir(), "clawdbot-gateway-test-"), path.join(os.tmpdir(), "clawdbot-gateway-test-"),
@@ -127,7 +127,7 @@ describe("gateway SIGTERM", () => {
child.stdout?.on("data", (d) => out.push(String(d))); child.stdout?.on("data", (d) => out.push(String(d)));
child.stderr?.on("data", (d) => err.push(String(d))); child.stderr?.on("data", (d) => err.push(String(d)));
await waitForPortOpen(proc, out, err, port, 75_000); await waitForPortOpen(proc, out, err, port, 150_000);
proc.kill("SIGTERM"); proc.kill("SIGTERM");

View File

@@ -43,5 +43,5 @@ describe("resolvePythonExecutablePath", () => {
process.env.PATH = originalPath; process.env.PATH = originalPath;
await fs.rm(tmp, { recursive: true, force: true }); await fs.rm(tmp, { recursive: true, force: true });
} }
}, 15_000); }, 60_000);
}); });