From 2a9562fc5894509e63016b1fe09f6dce0c4b6e5e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 12 Nov 2020 08:51:42 +0100 Subject: [PATCH] Increase tests waits --- server/tests/api/live/live.ts | 8 ++++---- shared/extra-utils/videos/live.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts index de3181928..29081c6cc 100644 --- a/server/tests/api/live/live.ts +++ b/server/tests/api/live/live.ts @@ -462,17 +462,17 @@ describe('Test live', function () { await viewVideo(servers[0].url, liveVideoId) await viewVideo(servers[0].url, liveVideoId) - await wait(5000) + await wait(7000) await waitJobs(servers) await countViews(1) }) - it('Should wait 5 seconds and display 0 views', async function () { + it('Should wait and display 0 views', async function () { this.timeout(30000) - await wait(5000) + await wait(7000) await waitJobs(servers) await countViews(0) @@ -485,7 +485,7 @@ describe('Test live', function () { await viewVideo(servers[1].url, liveVideoId) await viewVideo(servers[1].url, liveVideoId) - await wait(5000) + await wait(7000) await waitJobs(servers) await countViews(2) diff --git a/shared/extra-utils/videos/live.ts b/shared/extra-utils/videos/live.ts index f90dd420d..4bfcc583e 100644 --- a/shared/extra-utils/videos/live.ts +++ b/shared/extra-utils/videos/live.ts @@ -111,7 +111,7 @@ async function testFfmpegStreamError (command: ffmpeg.FfmpegCommand, shouldHaveE let error: Error try { - await waitFfmpegUntilError(command, 10000) + await waitFfmpegUntilError(command, 15000) } catch (err) { error = err } -- 2.41.0