mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
test(qa): stabilize lab catalog abort fixture
This commit is contained in:
@@ -555,11 +555,11 @@ describe("qa-lab server", () => {
|
||||
path.join(repoRoot, "dist/index.js"),
|
||||
[
|
||||
'const fs = require("node:fs");',
|
||||
`fs.writeFileSync(${JSON.stringify(markerPath)}, process.env.OPENCLAW_CODEX_DISCOVERY_LIVE || "", "utf8");`,
|
||||
"process.on('SIGTERM', () => {",
|
||||
` fs.writeFileSync(${JSON.stringify(stoppedPath)}, "terminated", "utf8");`,
|
||||
" process.exit(0);",
|
||||
"});",
|
||||
`fs.writeFileSync(${JSON.stringify(markerPath)}, process.env.OPENCLAW_CODEX_DISCOVERY_LIVE || "", "utf8");`,
|
||||
"setInterval(() => {}, 1000);",
|
||||
].join("\n"),
|
||||
"utf8",
|
||||
|
||||
Reference in New Issue
Block a user