From 9961acf57956894309052d48ecb43589bf18ad1d Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Tue, 7 Oct 2025 07:11:13 +0000 Subject: [PATCH] fix(test): nested Bun child should use --autokill flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nested child Bun process should also use --autokill to properly test the nested autokill behavior. This ensures both the parent and child Bun processes will kill their children when exiting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- test/cli/autokill.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cli/autokill.test.ts b/test/cli/autokill.test.ts index a9a074d97d..560acf2b03 100644 --- a/test/cli/autokill.test.ts +++ b/test/cli/autokill.test.ts @@ -632,15 +632,15 @@ describe.skipIf(isWindows)("--autokill", () => { "nested_parent.js": ` const { spawn } = require('child_process'); - // Spawn a nested Bun process that spawns its own children + // Spawn a nested Bun process with --autokill that spawns its own children const bunExe = process.argv[0]; - const childBun = spawn(bunExe, ['nested_child.js'], { + const childBun = spawn(bunExe, ['--autokill', 'nested_child.js'], { cwd: __dirname }); console.log('parent-bun-pid:', childBun.pid); - // Exit after a delay, triggering autokill + // Exit after a delay, triggering autokill on parent and nested child setTimeout(() => process.exit(0), 200); `, });