test: normalize tmp media path assertion for windows

This commit is contained in:
Peter Steinberger
2026-02-25 00:58:12 +00:00
parent 5c6b2cbc8e
commit 2157c490af

View File

@@ -706,7 +706,8 @@ describe("runMessageAction sandboxed media validation", () => {
if (result.kind !== "send") {
throw new Error("expected send result");
}
expect(result.sendResult?.mediaUrl).toBe(tmpFile);
// runMessageAction normalizes media paths through platform resolution.
expect(result.sendResult?.mediaUrl).toBe(path.resolve(tmpFile));
const hostTmpOutsideOpenClaw = path.join(os.tmpdir(), "outside-openclaw", "test-media.png");
await expect(
runMessageAction({