mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test(docker): shorten Unix socket fixture paths (#119952)
This commit is contained in:
committed by
GitHub
parent
913b53ad80
commit
08a3f5f949
@@ -4,6 +4,7 @@ import { createServer } from "node:net";
|
||||
import { join, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { expect } from "vitest";
|
||||
import { resolvePreferredOpenClawTmpDir } from "./infra/tmp-openclaw-dir.js";
|
||||
import { createSuiteTempRootTracker } from "./test-helpers/temp-dir.js";
|
||||
|
||||
export const repoRoot = resolve(fileURLToPath(new URL(".", import.meta.url)), "..");
|
||||
@@ -15,7 +16,10 @@ export type DockerSetupSandbox = {
|
||||
binDir: string;
|
||||
};
|
||||
|
||||
const sandboxRootTracker = createSuiteTempRootTracker({ prefix: "openclaw-docker-setup-" });
|
||||
const sandboxRootTracker = createSuiteTempRootTracker({
|
||||
prefix: "openclaw-docker-setup-",
|
||||
parentDir: resolvePreferredOpenClawTmpDir(),
|
||||
});
|
||||
|
||||
export async function setupDockerSetupSandboxRoot(): Promise<void> {
|
||||
await sandboxRootTracker.setup();
|
||||
|
||||
Reference in New Issue
Block a user