From 5480933b7f088bf099b25fb467faace814f0da58 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Oct 2021 14:25:19 +0200 Subject: Add peertube short link import test --- server/tests/api/videos/video-imports.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index cfb188060..bb1627a27 100644 --- a/server/tests/api/videos/video-imports.ts +++ b/server/tests/api/videos/video-imports.ts @@ -345,9 +345,14 @@ describe('Test video imports', function () { it('Should import a peertube video', async function () { this.timeout(120_000) + const toTest = [ FIXTURE_URLS.peertube_long ] + // TODO: include peertube_short when https://github.com/ytdl-org/youtube-dl/pull/29475 is merged - for (const targetUrl of [ FIXTURE_URLS.peertube_long ]) { - // for (const targetUrl of [ FIXTURE_URLS.peertube_long, FIXTURE_URLS.peertube_short ]) { + if (mode === 'yt-dlp') { + toTest.push(FIXTURE_URLS.peertube_short) + } + + for (const targetUrl of toTest) { await servers[0].config.disableTranscoding() const attributes = { -- cgit v1.2.3