fix: stabilize windows test timeouts
This commit is contained in:
@@ -10,7 +10,7 @@ Docs: https://docs.clawd.bot
|
|||||||
- Docs: refresh Android node discovery docs for the Gateway WS service type.
|
- Docs: refresh Android node discovery docs for the Gateway WS service type.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Tests: stabilize Windows gateway/CLI tests by skipping sidecars and normalizing argv.
|
- Tests: stabilize Windows gateway/CLI tests by skipping sidecars, normalizing argv, and extending timeouts.
|
||||||
|
|
||||||
## 2026.1.19-1
|
## 2026.1.19-1
|
||||||
|
|
||||||
|
|||||||
@@ -78,8 +78,9 @@ function normalizeWindowsArgv(argv: string[]): string[] {
|
|||||||
next = [argv[0], argv[1], ...argv.slice(3)];
|
next = [argv[0], argv[1], ...argv.slice(3)];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (next.length < 3) return next;
|
const filtered = next.filter((arg, index) => index === 0 || !isExecPath(arg));
|
||||||
const cleaned = [...next];
|
if (filtered.length < 3) return filtered;
|
||||||
|
const cleaned = [...filtered];
|
||||||
for (let i = 2; i < cleaned.length; ) {
|
for (let i = 2; i < cleaned.length; ) {
|
||||||
const arg = cleaned[i];
|
const arg = cleaned[i];
|
||||||
if (!arg || arg.startsWith("-")) {
|
if (!arg || arg.startsWith("-")) {
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ function parseSseDataLines(text: string): string[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe("OpenAI-compatible HTTP API (e2e)", () => {
|
describe("OpenAI-compatible HTTP API (e2e)", () => {
|
||||||
it("is disabled by default (requires config)", async () => {
|
it("is disabled by default (requires config)", { timeout: 120_000 }, async () => {
|
||||||
const port = await getFreePort();
|
const port = await getFreePort();
|
||||||
const server = await startServerWithDefaultConfig(port);
|
const server = await startServerWithDefaultConfig(port);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ async function rmTempDir(dir: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe("gateway server cron", () => {
|
describe("gateway server cron", () => {
|
||||||
test("supports cron.add and cron.list", async () => {
|
test("supports cron.add and cron.list", { timeout: 120_000 }, async () => {
|
||||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-gw-cron-"));
|
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-gw-cron-"));
|
||||||
testState.cronStorePath = path.join(dir, "cron", "jobs.json");
|
testState.cronStorePath = path.join(dir, "cron", "jobs.json");
|
||||||
await fs.mkdir(path.dirname(testState.cronStorePath), { recursive: true });
|
await fs.mkdir(path.dirname(testState.cronStorePath), { recursive: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user