mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 13:11:40 +00:00
test(planner): force real timers in executor fallback
This commit is contained in:
@@ -4,12 +4,14 @@ import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { importFreshModule } from "../helpers/import-fresh.js";
|
||||
|
||||
afterEach(() => {
|
||||
vi.useRealTimers();
|
||||
vi.restoreAllMocks();
|
||||
vi.resetModules();
|
||||
});
|
||||
|
||||
describe("test planner executor", () => {
|
||||
it("falls back to child exit when close never arrives", async () => {
|
||||
vi.useRealTimers();
|
||||
const stdout = new PassThrough();
|
||||
const stderr = new PassThrough();
|
||||
const fakeChild = Object.assign(new EventEmitter(), {
|
||||
|
||||
Reference in New Issue
Block a user