mirror of https://github.com/openclaw/openclaw.git
test: normalize tmp media path assertion for windows
This commit is contained in:
parent
5c6b2cbc8e
commit
2157c490af
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue