test(planner): force real timers in executor fallback

This commit is contained in:
Tak Hoffman 2026-03-27 08:40:48 -05:00
parent 398af90a22
commit 4c8ed2ce46
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -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(), {