diff --git a/src/media-understanding/runner.test-utils.ts b/src/media-understanding/runner.test-utils.ts index 823d63ea943..98c8e1cc8c2 100644 --- a/src/media-understanding/runner.test-utils.ts +++ b/src/media-understanding/runner.test-utils.ts @@ -15,7 +15,7 @@ export async function withAudioFixture( filePrefix: string, run: (params: AudioFixtureParams) => Promise, ) { - const tmpPath = path.join(os.tmpdir(), `${filePrefix}-${Date.now()}.wav`); + const tmpPath = path.join(os.tmpdir(), filePrefix + "-" + Date.now().toString() + ".wav"); await fs.writeFile(tmpPath, Buffer.from("RIFF")); const ctx: MsgContext = { MediaPath: tmpPath, MediaType: "audio/wav" }; const media = normalizeMediaAttachments(ctx);