diff --git a/test/scripts/run-with-env.test.ts b/test/scripts/run-with-env.test.ts index 2f5d594b5449..6dfbec218761 100644 --- a/test/scripts/run-with-env.test.ts +++ b/test/scripts/run-with-env.test.ts @@ -391,13 +391,13 @@ describe("run-with-env", () => { const grandchildReadyFile = path.join(tempDir, "grandchild-ready"); const grandchildScript = [ "const fs = require('node:fs');", - "fs.writeFileSync(process.env.GRANDCHILD_READY_FILE, 'ready');", "process.on('SIGTERM', () => {", " setTimeout(() => {", " fs.writeFileSync(process.env.GRACEFUL_FILE, 'done');", " process.exit(0);", " }, 75);", "});", + "fs.writeFileSync(process.env.GRANDCHILD_READY_FILE, 'ready');", "setInterval(() => {}, 1000);", ].join("\n"); const childScript = [