From 518dbbf4c6c3c3cc1dd010c5a95f3c0a036ca13c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 21 Feb 2026 20:49:32 +0100 Subject: [PATCH] test: avoid template-literal temp path in runner fixture --- src/media-understanding/runner.test-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media-understanding/runner.test-utils.ts b/src/media-understanding/runner.test-utils.ts index 823d63ea9..98c8e1cc8 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);