Skip to content

Commit b8a6341

Browse files
authored
test: publish run-with-env readiness after signal setup (#108787)
1 parent 804de49 commit b8a6341

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test/scripts/run-with-env.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@ describe("run-with-env", () => {
391391
const grandchildReadyFile = path.join(tempDir, "grandchild-ready");
392392
const grandchildScript = [
393393
"const fs = require('node:fs');",
394-
"fs.writeFileSync(process.env.GRANDCHILD_READY_FILE, 'ready');",
395394
"process.on('SIGTERM', () => {",
396395
" setTimeout(() => {",
397396
" fs.writeFileSync(process.env.GRACEFUL_FILE, 'done');",
398397
" process.exit(0);",
399398
" }, 75);",
400399
"});",
400+
"fs.writeFileSync(process.env.GRANDCHILD_READY_FILE, 'ready');",
401401
"setInterval(() => {}, 1000);",
402402
].join("\n");
403403
const childScript = [

0 commit comments

Comments
 (0)