mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:57:40 +00:00
test: remove low-value session-file options wrapper assertion
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
|||||||
import { deriveSessionMetaPatch } from "./metadata.js";
|
import { deriveSessionMetaPatch } from "./metadata.js";
|
||||||
import {
|
import {
|
||||||
resolveSessionFilePath,
|
resolveSessionFilePath,
|
||||||
resolveSessionFilePathOptions,
|
|
||||||
resolveSessionTranscriptPathInDir,
|
resolveSessionTranscriptPathInDir,
|
||||||
resolveStorePath,
|
resolveStorePath,
|
||||||
validateSessionId,
|
validateSessionId,
|
||||||
@@ -155,17 +154,6 @@ describe("session path safety", () => {
|
|||||||
|
|
||||||
expect(resolved).toBe(path.resolve(opsSessionFile));
|
expect(resolved).toBe(path.resolve(opsSessionFile));
|
||||||
});
|
});
|
||||||
|
|
||||||
it("keeps custom per-agent store roots when agentId is provided", () => {
|
|
||||||
const opts = resolveSessionFilePathOptions({
|
|
||||||
storePath: "/srv/custom/agents/ops/sessions/sessions.json",
|
|
||||||
agentId: "ops",
|
|
||||||
});
|
|
||||||
expect(opts).toEqual({
|
|
||||||
sessionsDir: path.resolve("/srv/custom/agents/ops/sessions"),
|
|
||||||
agentId: "ops",
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("resolveSessionResetPolicy", () => {
|
describe("resolveSessionResetPolicy", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user