test: add config for gateway sigterm

This commit is contained in:
Peter Steinberger
2026-01-04 14:59:49 +00:00
parent c6b8235862
commit 30d5511058

View File

@@ -80,6 +80,12 @@ describe("gateway SIGTERM", () => {
const stateDir = fs.mkdtempSync(
path.join(os.tmpdir(), "clawdbot-gateway-test-"),
);
const configPath = path.join(stateDir, "clawdbot.json");
fs.writeFileSync(
configPath,
JSON.stringify({ gateway: { mode: "local", port } }, null, 2),
"utf8",
);
const out: string[] = [];
const err: string[] = [];
@@ -101,7 +107,7 @@ describe("gateway SIGTERM", () => {
env: {
...process.env,
CLAWDBOT_STATE_DIR: stateDir,
CLAWDBOT_CONFIG_PATH: path.join(stateDir, "clawdbot.json"),
CLAWDBOT_CONFIG_PATH: configPath,
CLAWDBOT_SKIP_PROVIDERS: "1",
CLAWDBOT_SKIP_BROWSER_CONTROL_SERVER: "1",
CLAWDBOT_SKIP_CANVAS_HOST: "1",