fix(ci): make gateway audit path test platform-safe

This commit is contained in:
Peter Steinberger 2026-04-03 12:22:29 +01:00
parent 5021b12ac1
commit 0a2a1ff778
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import path from "node:path";
import { Command } from "commander";
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { withTempSecretFiles } from "../../test-utils/secret-file-fixture.js";
@ -229,7 +230,9 @@ describe("gateway run option collisions", () => {
expect(runtimeErrors).toContain(
"Gateway start blocked: existing config is missing gateway.mode. Treat this as suspicious or clobbered config. Re-run `openclaw onboard --mode local` or `openclaw setup`, set gateway.mode=local manually, or pass --allow-unconfigured.",
);
expect(runtimeErrors).toContain("Config write audit: /tmp/logs/config-audit.jsonl");
expect(runtimeErrors).toContain(
`Config write audit: ${path.join("/tmp", "logs", "config-audit.jsonl")}`,
);
expect(startGatewayServer).not.toHaveBeenCalled();
});