From 0a2a1ff778fd7f4b9d4f706b4a3037d2de7eb941 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 3 Apr 2026 12:22:29 +0100 Subject: [PATCH] fix(ci): make gateway audit path test platform-safe --- src/cli/gateway-cli/run.option-collisions.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); });