mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
test: suppress session lock watchdog noise
This commit is contained in:
@@ -221,7 +221,14 @@ function stopWatchdogTimer(): void {
|
||||
watchdogState.started = false;
|
||||
}
|
||||
|
||||
function shouldStartBackgroundWatchdog(): boolean {
|
||||
return process.env.VITEST !== "true" || process.env.OPENCLAW_TEST_SESSION_LOCK_WATCHDOG === "1";
|
||||
}
|
||||
|
||||
function ensureWatchdogStarted(intervalMs: number): void {
|
||||
if (!shouldStartBackgroundWatchdog()) {
|
||||
return;
|
||||
}
|
||||
const watchdogState = resolveWatchdogState();
|
||||
if (watchdogState.started) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user