diff --git a/src/cli/gateway-cli/run.option-collisions.test.ts b/src/cli/gateway-cli/run.option-collisions.test.ts index 5d475bb529d..cf1d4f59cb3 100644 --- a/src/cli/gateway-cli/run.option-collisions.test.ts +++ b/src/cli/gateway-cli/run.option-collisions.test.ts @@ -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(); });