diff --git a/src/download/media-download.test.ts b/src/download/media-download.test.ts index 8029071be..eae48d4a5 100644 --- a/src/download/media-download.test.ts +++ b/src/download/media-download.test.ts @@ -31,7 +31,9 @@ async function startServer(handler: http.RequestListener): Promise { return `http://127.0.0.1:${address.port}`; } -describe('media downloads', () => { +// Windows runners occasionally exceed the default 5s timeout on the first +// http.createServer + downloadMedia roundtrip (cold-start cost on a loaded VM). +describe('media downloads', { retry: process.platform === 'win32' ? 2 : 0 }, () => { it('keeps custom filenames inside the output directory', async () => { const baseUrl = await startServer((_req, res) => { res.statusCode = 200;