From 59fd824cf3434a8417b73230f1840fed327e3495 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 Dec 2020 10:36:05 +0100 Subject: Fix tests timeout --- server/tests/api/live/live-permanent.ts | 6 ++++-- server/tests/api/live/live-save-replay.ts | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'server/tests/api/live') diff --git a/server/tests/api/live/live-permanent.ts b/server/tests/api/live/live-permanent.ts index 2701c65e3..9e6c6cf70 100644 --- a/server/tests/api/live/live-permanent.ts +++ b/server/tests/api/live/live-permanent.ts @@ -20,7 +20,8 @@ import { updateLive, wait, waitJobs, - waitUntilLivePublished + waitUntilLivePublished, + waitUntilLiveWaiting } from '../../../../shared/extra-utils' const expect = chai.expect @@ -111,7 +112,7 @@ describe('Permenant live', function () { }) it('Should stream into this permanent live', async function () { - this.timeout(40000) + this.timeout(60000) const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, videoUUID) @@ -122,6 +123,7 @@ describe('Permenant live', function () { await checkVideoState(videoUUID, VideoState.PUBLISHED) await stopFfmpeg(command) + await waitUntilLiveWaiting(servers[0].url, servers[0].accessToken, videoUUID) await waitJobs(servers) }) diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts index bd683b2bf..6cd8cc23f 100644 --- a/server/tests/api/live/live-save-replay.ts +++ b/server/tests/api/live/live-save-replay.ts @@ -136,7 +136,7 @@ describe('Save replay setting', function () { }) it('Should correctly delete the video files after the stream ended', async function () { - this.timeout(30000) + this.timeout(40000) await stopFfmpeg(ffmpegCommand) @@ -146,6 +146,8 @@ describe('Save replay setting', function () { await checkVideosExist(liveVideoUUID, false, HttpStatusCode.OK_200) await checkVideoState(liveVideoUUID, VideoState.LIVE_ENDED) + await waitJobs(servers) + // No resolutions saved since we did not save replay await checkLiveCleanup(servers[0], liveVideoUUID, []) }) -- cgit v1.2.3