mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 12:57:26 +00:00
test: create homedir before sandbox image mkdtemp
This commit is contained in:
@@ -207,7 +207,9 @@ describe("modelSupportsImages", () => {
|
||||
|
||||
describe("loadImageFromRef", () => {
|
||||
it("allows sandbox-validated host paths outside default media roots", async () => {
|
||||
const sandboxParent = await fs.mkdtemp(path.join(os.homedir(), "openclaw-sandbox-image-"));
|
||||
const homeDir = os.homedir();
|
||||
await fs.mkdir(homeDir, { recursive: true });
|
||||
const sandboxParent = await fs.mkdtemp(path.join(homeDir, "openclaw-sandbox-image-"));
|
||||
try {
|
||||
const sandboxRoot = path.join(sandboxParent, "sandbox");
|
||||
await fs.mkdir(sandboxRoot, { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user