mirror of https://github.com/openclaw/openclaw.git
fix(ci): make gateway audit path test platform-safe
This commit is contained in:
parent
5021b12ac1
commit
0a2a1ff778
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue