mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
test: remove duplicate session file options fallback case
This commit is contained in:
@@ -179,17 +179,6 @@ describe("session path safety", () => {
|
||||
expect(resolved.endsWith(path.join("agents", "main", "sessions", "sess-1.jsonl"))).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps storePath and agentId when resolving session file options", () => {
|
||||
const opts = resolveSessionFilePathOptions({
|
||||
storePath: "/tmp/custom/agent-store/sessions.json",
|
||||
agentId: "ops",
|
||||
});
|
||||
expect(opts).toEqual({
|
||||
sessionsDir: path.resolve("/tmp/custom/agent-store"),
|
||||
agentId: "ops",
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps custom per-agent store roots when agentId is provided", () => {
|
||||
const opts = resolveSessionFilePathOptions({
|
||||
storePath: "/srv/custom/agents/ops/sessions/sessions.json",
|
||||
|
||||
Reference in New Issue
Block a user