From ec240986ef5b53a523816f97e35965e5e95a984e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 Aug 2022 16:05:41 +0200 Subject: [PATCH] Increase timeouts --- server/tests/api/videos/video-files.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/server/tests/api/videos/video-files.ts b/server/tests/api/videos/video-files.ts index 313f020e9..d204a54de 100644 --- a/server/tests/api/videos/video-files.ts +++ b/server/tests/api/videos/video-files.ts @@ -34,6 +34,8 @@ describe('Test videos files', function () { let validId2: string before(async function () { + this.timeout(120_000) + { const { uuid } = await servers[0].videos.quickUpload({ name: 'video 1' }) validId1 = uuid @@ -83,6 +85,8 @@ describe('Test videos files', function () { let hlsId: string before(async function () { + this.timeout(120_000) + { const { uuid } = await servers[0].videos.quickUpload({ name: 'webtorrent' }) webtorrentId = uuid @@ -97,6 +101,8 @@ describe('Test videos files', function () { }) it('Shoulde delete a webtorrent file', async function () { + this.timeout(30_000) + const video = await servers[0].videos.get({ id: webtorrentId }) const files = video.files @@ -113,6 +119,8 @@ describe('Test videos files', function () { }) it('Should delete all webtorrent files', async function () { + this.timeout(30_000) + const video = await servers[0].videos.get({ id: webtorrentId }) const files = video.files @@ -130,6 +138,8 @@ describe('Test videos files', function () { }) it('Should delete a hls file', async function () { + this.timeout(30_000) + const video = await servers[0].videos.get({ id: hlsId }) const files = video.streamingPlaylists[0].files const toDelete = files[0] @@ -152,6 +162,8 @@ describe('Test videos files', function () { }) it('Should delete all hls files', async function () { + this.timeout(30_000) + const video = await servers[0].videos.get({ id: hlsId }) const files = video.streamingPlaylists[0].files @@ -169,6 +181,8 @@ describe('Test videos files', function () { }) it('Should not delete last file of a video', async function () { + this.timeout(60_000) + const webtorrentOnly = await servers[0].videos.get({ id: hlsId }) const hlsOnly = await servers[0].videos.get({ id: webtorrentId })