test: publish run-with-env readiness after signal setup (#108787)

This commit is contained in:
Peter Steinberger
2026-07-16 02:00:15 -07:00
committed by GitHub
parent 804de49dda
commit b8a6341617
+1 -1
View File
@@ -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 = [