mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:40:49 +00:00
test: remove low-value custom-root agent-extraction path case
This commit is contained in:
@@ -68,19 +68,6 @@ describe("session path safety", () => {
|
|||||||
),
|
),
|
||||||
).toThrow(/within sessions directory/);
|
).toThrow(/within sessions directory/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("uses extracted agent fallback for custom per-agent store roots", () => {
|
|
||||||
const mainSessionsDir = "/srv/custom/agents/main/sessions";
|
|
||||||
const opsSessionFile = "/srv/custom/agents/ops/sessions/abc-123.jsonl";
|
|
||||||
|
|
||||||
const resolved = resolveSessionFilePath(
|
|
||||||
"sess-1",
|
|
||||||
{ sessionFile: opsSessionFile },
|
|
||||||
{ sessionsDir: mainSessionsDir },
|
|
||||||
);
|
|
||||||
|
|
||||||
expect(resolved).toBe(path.resolve(opsSessionFile));
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("resolveSessionResetPolicy", () => {
|
describe("resolveSessionResetPolicy", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user