From 6cdeb62a0107dd9b2f3ed5da409bae0a5844a204 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 15:28:32 +0000 Subject: [PATCH] test: trim gateway sigterm bootstrap imports --- src/cli/gateway.sigterm.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cli/gateway.sigterm.test.ts b/src/cli/gateway.sigterm.test.ts index a4e10043e..0824195a2 100644 --- a/src/cli/gateway.sigterm.test.ts +++ b/src/cli/gateway.sigterm.test.ts @@ -95,14 +95,12 @@ describe("gateway SIGTERM", () => { }; const bootstrapPath = path.join(stateDir, "openclaw-entry-bootstrap.cjs"); const runLoopPath = path.resolve("src/cli/gateway-cli/run-loop.ts"); - const runtimePath = path.resolve("src/runtime.ts"); const jitiPath = require.resolve("jiti"); fs.writeFileSync( bootstrapPath, [ `const jiti = require(${JSON.stringify(jitiPath)})(__filename);`, `const { runGatewayLoop } = jiti(${JSON.stringify(runLoopPath)});`, - `const { defaultRuntime } = jiti(${JSON.stringify(runtimePath)});`, "(async () => {", " await runGatewayLoop({", " start: async () => {", @@ -111,7 +109,7 @@ describe("gateway SIGTERM", () => { " const keepAlive = setInterval(() => {}, 1000);", " return { close: async () => clearInterval(keepAlive) };", " },", - " runtime: defaultRuntime,", + " runtime: { exit: (code) => process.exit(code) },", " });", "})().catch((err) => {", " console.error(err);",