mirror of https://github.com/openclaw/openclaw.git
test: remove redundant in-dir relative session-file acceptance case
This commit is contained in:
parent
bf801f5159
commit
731d72e119
|
|
@ -87,18 +87,6 @@ describe("session path safety", () => {
|
|||
).toThrow(/within sessions directory/);
|
||||
});
|
||||
|
||||
it("accepts sessionFile candidates within the sessions dir", () => {
|
||||
const sessionsDir = "/tmp/openclaw/agents/main/sessions";
|
||||
|
||||
const resolved = resolveSessionFilePath(
|
||||
"sess-1",
|
||||
{ sessionFile: "subdir/threaded-session.jsonl" },
|
||||
{ sessionsDir },
|
||||
);
|
||||
|
||||
expect(resolved).toBe(path.resolve(sessionsDir, "subdir/threaded-session.jsonl"));
|
||||
});
|
||||
|
||||
it("accepts absolute sessionFile paths that resolve within the sessions dir", () => {
|
||||
const sessionsDir = "/tmp/openclaw/agents/main/sessions";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue