mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
test: publish run-with-env readiness after signal setup (#108787)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user