mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 19:31:24 +00:00
Fix path-root flaky tests and restore status emoji defaults (#22274)
This commit is contained in:
@@ -24,7 +24,9 @@ async function withAudioFixture(
|
||||
await fs.writeFile(tmpPath, Buffer.from("RIFF"));
|
||||
const ctx: MsgContext = { MediaPath: tmpPath, MediaType: "audio/wav" };
|
||||
const media = normalizeMediaAttachments(ctx);
|
||||
const cache = createMediaAttachmentCache(media);
|
||||
const cache = createMediaAttachmentCache(media, {
|
||||
localPathRoots: [os.tmpdir()],
|
||||
});
|
||||
|
||||
try {
|
||||
await run({ ctx, media, cache });
|
||||
|
||||
@@ -17,7 +17,9 @@ describe("runCapability deepgram provider options", () => {
|
||||
await fs.writeFile(tmpPath, Buffer.from("RIFF"));
|
||||
const ctx: MsgContext = { MediaPath: tmpPath, MediaType: "audio/wav" };
|
||||
const media = normalizeMediaAttachments(ctx);
|
||||
const cache = createMediaAttachmentCache(media);
|
||||
const cache = createMediaAttachmentCache(media, {
|
||||
localPathRoots: [os.tmpdir()],
|
||||
});
|
||||
|
||||
let seenQuery: Record<string, string | number | boolean> | undefined;
|
||||
let seenBaseUrl: string | undefined;
|
||||
|
||||
Reference in New Issue
Block a user