mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 10:51:23 +00:00
fix(ci): resolve windows test path assertion and sync protocol swift models
This commit is contained in:
@@ -546,8 +546,10 @@ describe("resolveSessionTranscriptCandidates safety", () => {
|
||||
storePath,
|
||||
"../../etc/passwd",
|
||||
);
|
||||
const normalizedCandidates = candidates.map((value) => path.resolve(value));
|
||||
const expectedFallback = path.resolve(path.dirname(storePath), "sess-safe.jsonl");
|
||||
|
||||
expect(candidates.some((value) => value.includes("etc/passwd"))).toBe(false);
|
||||
expect(candidates).toContain(path.join(path.dirname(storePath), "sess-safe.jsonl"));
|
||||
expect(normalizedCandidates).toContain(expectedFallback);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user