mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 15:14:57 +00:00
test(ci): harden background abort timing on windows
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
|||||||
import { createExecTool } from "./bash-tools.exec.js";
|
import { createExecTool } from "./bash-tools.exec.js";
|
||||||
import { killProcessTree } from "./shell-utils.js";
|
import { killProcessTree } from "./shell-utils.js";
|
||||||
|
|
||||||
const BACKGROUND_HOLD_CMD = 'node -e "setTimeout(() => {}, 100)"';
|
const BACKGROUND_HOLD_CMD = 'node -e "setTimeout(() => {}, 5000)"';
|
||||||
const ABORT_SETTLE_MS = process.platform === "win32" ? 200 : 40;
|
const ABORT_SETTLE_MS = process.platform === "win32" ? 200 : 40;
|
||||||
const ABORT_WAIT_TIMEOUT_MS = process.platform === "win32" ? 1_500 : 240;
|
const ABORT_WAIT_TIMEOUT_MS = process.platform === "win32" ? 1_500 : 240;
|
||||||
const POLL_INTERVAL_MS = 15;
|
const POLL_INTERVAL_MS = 15;
|
||||||
|
|||||||
Reference in New Issue
Block a user