mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
19 lines
492 B
TypeScript
Generated
19 lines
492 B
TypeScript
Generated
import { expect, test } from "bun:test";
|
|
import { bunEnv, bunExe } from "harness";
|
|
|
|
test("test timeout kills dangling processes", async () => {
|
|
Bun.spawn({
|
|
cmd: [bunExe(), "--eval", "Bun.sleepSync(50); console.log('This should not be printed!');"],
|
|
stdout: "inherit",
|
|
stderr: "inherit",
|
|
stdin: "inherit",
|
|
env: bunEnv,
|
|
});
|
|
await Bun.sleep(5);
|
|
}, 1);
|
|
|
|
test("slow test after test timeout", async () => {
|
|
await Bun.sleep(100);
|
|
console.log("Ran slow test");
|
|
}, 200);
|