15 lines
484 B
TypeScript
15 lines
484 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
import { normalizeOpenClawChatConfig } from "@/lib/openclaw-chat/config";
|
|
|
|
test.describe("OpenClaw chat timeout config", () => {
|
|
test("defaults long-running tasks to ten minutes", () => {
|
|
expect(normalizeOpenClawChatConfig({}).timeoutMs).toBe(600_000);
|
|
});
|
|
|
|
test("caps configured timeouts at ten minutes", () => {
|
|
expect(
|
|
normalizeOpenClawChatConfig({ timeoutMs: 900_000 }).timeoutMs
|
|
).toBe(600_000);
|
|
});
|
|
});
|