mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 01:20:22 +00:00
test(fix): stabilize exec no-output heartbeat timing case
This commit is contained in:
@@ -60,17 +60,17 @@ describe("runCommandWithTimeout", () => {
|
|||||||
"let count = 0;",
|
"let count = 0;",
|
||||||
'const ticker = setInterval(() => { process.stdout.write(".");',
|
'const ticker = setInterval(() => { process.stdout.write(".");',
|
||||||
"count += 1;",
|
"count += 1;",
|
||||||
"if (count === 2) {",
|
"if (count === 3) {",
|
||||||
"clearInterval(ticker);",
|
"clearInterval(ticker);",
|
||||||
"process.exit(0);",
|
"process.exit(0);",
|
||||||
"}",
|
"}",
|
||||||
"}, 5);",
|
"}, 6);",
|
||||||
].join(" "),
|
].join(" "),
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
timeoutMs: 400,
|
timeoutMs: 500,
|
||||||
// Keep a healthy margin above the emit interval while avoiding long idle waits.
|
// Keep a healthy margin above the emit interval while avoiding long idle waits.
|
||||||
noOutputTimeoutMs: 60,
|
noOutputTimeoutMs: 120,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user