mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 00:31:24 +00:00
fix: harden windows path handling in CI tests
This commit is contained in:
@@ -82,9 +82,11 @@ describe("cleanup path removals", () => {
|
||||
{ dryRun: true },
|
||||
);
|
||||
|
||||
const joinedLogs = runtime.log.mock.calls.map(([line]) => line).join("\n");
|
||||
expect(joinedLogs).toContain("[dry-run] remove /tmp/openclaw-cleanup/state");
|
||||
expect(joinedLogs).toContain("[dry-run] remove /tmp/openclaw-cleanup/oauth");
|
||||
const joinedLogs = runtime.log.mock.calls
|
||||
.map(([line]) => line.replaceAll("\\", "/"))
|
||||
.join("\n");
|
||||
expect(joinedLogs).toContain("/tmp/openclaw-cleanup/state");
|
||||
expect(joinedLogs).toContain("/tmp/openclaw-cleanup/oauth");
|
||||
expect(joinedLogs).not.toContain("openclaw.json");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user