fix(ci): stabilize media and session store tests

This commit is contained in:
Peter Steinberger
2026-02-15 18:12:15 +00:00
parent 01ca3da8ee
commit 65f8b46c15
2 changed files with 9 additions and 1 deletions

View File

@@ -101,7 +101,12 @@ describe("web media loading", () => {
// Ensure state dir is stable and not influenced by other tests that stub OPENCLAW_STATE_DIR.
// Also keep it outside os.tmpdir() so tmpdir localRoots doesn't accidentally make all state readable.
previousStateDir = process.env.OPENCLAW_STATE_DIR;
process.env.OPENCLAW_STATE_DIR = path.join(os.homedir(), ".openclaw-media-state-test");
process.env.OPENCLAW_STATE_DIR = path.join(
path.parse(os.tmpdir()).root,
"var",
"lib",
"openclaw-media-state-test",
);
});
afterAll(() => {