fix: OCAS_DIR → OCAS_HOME in test helpers
CI / check (pull_request) Failing after 1m58s

Remaining references to the old env name caused tests to use the
global ~/.ocas instead of per-test temp dirs.

Fixes #58
This commit is contained in:
2026-06-04 10:59:53 +00:00
parent 5fe492c011
commit a8734f29e1
2 changed files with 4 additions and 4 deletions
@@ -15,7 +15,7 @@ import {
async function makeUwfStore(storageRoot: string) {
const casDir = join(storageRoot, "cas");
await mkdir(casDir, { recursive: true });
process.env.OCAS_DIR = casDir;
process.env.OCAS_HOME = casDir;
return createUwfStore(storageRoot);
}
@@ -491,7 +491,7 @@ describe("uwf thread resume - completed threads", () => {
cwd: tmpDir,
});
process.env.OCAS_DIR = casDir;
process.env.OCAS_HOME = casDir;
const workerOutputHash = await store.cas.put(outputSchemaHash, { $status: "_" });
const reviewerOutputHash = await store.cas.put(outputSchemaHash, { $status: "_" });
@@ -654,7 +654,7 @@ echo '${adapterJson}'
cwd: tmpDir,
});
process.env.OCAS_DIR = casDir;
process.env.OCAS_HOME = casDir;
await seedThreads(tmpDir, {
[THREAD_ID]: {
head: startHash,
@@ -702,7 +702,7 @@ echo '${adapterJson}'
cwd: tmpDir,
});
process.env.OCAS_DIR = casDir;
process.env.OCAS_HOME = casDir;
await seedThreads(tmpDir, { [THREAD_ID]: startHash });
const result = runUwf(["thread", "resume", THREAD_ID], casDir);