From 5752683ea518abfeaeb33adead3cb5541616e835 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 May 2023 16:33:30 +0200 Subject: Increase test timeouts --- server/tests/api/check-params/video-studio.ts | 2 +- server/tests/api/live/live-save-replay.ts | 28 +++++++++++++-------------- server/tests/api/server/follows.ts | 2 +- server/tests/api/server/logs.ts | 13 +++++++------ 4 files changed, 23 insertions(+), 22 deletions(-) diff --git a/server/tests/api/check-params/video-studio.ts b/server/tests/api/check-params/video-studio.ts index dc533b242..add8d9164 100644 --- a/server/tests/api/check-params/video-studio.ts +++ b/server/tests/api/check-params/video-studio.ts @@ -121,7 +121,7 @@ describe('Test video studio API validator', function () { }) it('Should fail with an already in transcoding state video', async function () { - this.timeout(30000) + this.timeout(60000) const { uuid } = await server.videos.quickUpload({ name: 'transcoded video' }) await waitJobs([ server ]) diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts index 2a44cb5a0..05ffe8af9 100644 --- a/server/tests/api/live/live-save-replay.ts +++ b/server/tests/api/live/live-save-replay.ts @@ -164,7 +164,7 @@ describe('Save replay setting', function () { }) it('Should correctly have updated the live and federated it when streaming in the live', async function () { - this.timeout(40000) + this.timeout(60000) ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) @@ -179,7 +179,7 @@ describe('Save replay setting', function () { }) it('Should correctly delete the video files after the stream ended', async function () { - this.timeout(40000) + this.timeout(60000) sessionEndDateMin = new Date() await stopFfmpeg(ffmpegCommand) @@ -241,7 +241,7 @@ describe('Save replay setting', function () { }) it('Should correctly terminate the stream on delete and delete the video', async function () { - this.timeout(40000) + this.timeout(60000) await publishLiveAndDelete({ permanent: false, replay: false }) @@ -253,7 +253,7 @@ describe('Save replay setting', function () { describe('With save replay enabled on non permanent live', function () { it('Should correctly create and federate the "waiting for stream" live', async function () { - this.timeout(40000) + this.timeout(60000) liveVideoUUID = await createLiveWrapper({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } }) @@ -265,7 +265,7 @@ describe('Save replay setting', function () { }) it('Should correctly have updated the live and federated it when streaming in the live', async function () { - this.timeout(40000) + this.timeout(60000) ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID) @@ -278,7 +278,7 @@ describe('Save replay setting', function () { }) it('Should correctly have saved the live and federated it after the streaming', async function () { - this.timeout(40000) + this.timeout(60000) const session = await servers[0].live.findLatestSession({ videoId: liveVideoUUID }) expect(session.endDate).to.not.exist @@ -319,7 +319,7 @@ describe('Save replay setting', function () { }) it('Should update the saved live and correctly federate the updated attributes', async function () { - this.timeout(40000) + this.timeout(60000) await servers[0].videos.update({ id: liveVideoUUID, attributes: { name: 'video updated', privacy: VideoPrivacy.PUBLIC } }) await waitJobs(servers) @@ -352,7 +352,7 @@ describe('Save replay setting', function () { }) it('Should correctly terminate the stream on delete and delete the video', async function () { - this.timeout(40000) + this.timeout(60000) await publishLiveAndDelete({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.PUBLIC } }) @@ -367,7 +367,7 @@ describe('Save replay setting', function () { describe('With a first live and its replay', function () { it('Should correctly create and federate the "waiting for stream" live', async function () { - this.timeout(40000) + this.timeout(60000) liveVideoUUID = await createLiveWrapper({ permanent: true, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } }) @@ -379,7 +379,7 @@ describe('Save replay setting', function () { }) it('Should correctly have updated the live and federated it when streaming in the live', async function () { - this.timeout(40000) + this.timeout(60000) ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID) @@ -392,7 +392,7 @@ describe('Save replay setting', function () { }) it('Should correctly have saved the live and federated it after the streaming', async function () { - this.timeout(40000) + this.timeout(60000) const liveDetails = await servers[0].videos.get({ id: liveVideoUUID }) @@ -457,7 +457,7 @@ describe('Save replay setting', function () { }) it('Should correctly have updated the live and federated it when streaming in the live', async function () { - this.timeout(40000) + this.timeout(60000) ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID) @@ -470,7 +470,7 @@ describe('Save replay setting', function () { }) it('Should correctly have saved the live and federated it after the streaming', async function () { - this.timeout(40000) + this.timeout(60000) const liveDetails = await servers[0].videos.get({ id: liveVideoUUID }) @@ -547,7 +547,7 @@ describe('Save replay setting', function () { }) it('Should correctly terminate the stream on delete and not save the video', async function () { - this.timeout(40000) + this.timeout(60000) const { liveDetails } = await publishLiveAndDelete({ permanent: true, diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index ecec95bf8..dba9e107c 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -360,7 +360,7 @@ describe('Test follows', function () { let video4: Video before(async function () { - this.timeout(50000) + this.timeout(120000) const video4Attributes = { name: 'server3-4', diff --git a/server/tests/api/server/logs.ts b/server/tests/api/server/logs.ts index 3b3314d34..a662992e0 100644 --- a/server/tests/api/server/logs.ts +++ b/server/tests/api/server/logs.ts @@ -28,7 +28,7 @@ describe('Test logs', function () { describe('With the standard log file', function () { it('Should get logs with a start date', async function () { - this.timeout(20000) + this.timeout(60000) await server.videos.upload({ attributes: { name: 'video 1' } }) await waitJobs([ server ]) @@ -46,7 +46,7 @@ describe('Test logs', function () { }) it('Should get logs with an end date', async function () { - this.timeout(30000) + this.timeout(60000) await server.videos.upload({ attributes: { name: 'video 3' } }) await waitJobs([ server ]) @@ -70,7 +70,7 @@ describe('Test logs', function () { }) it('Should filter by level', async function () { - this.timeout(20000) + this.timeout(60000) const now = new Date() @@ -127,7 +127,7 @@ describe('Test logs', function () { }) it('Should not log ping requests', async function () { - this.timeout(30000) + this.timeout(60000) await killallServers([ server ]) @@ -145,8 +145,9 @@ describe('Test logs', function () { }) describe('With the audit log', function () { + it('Should get logs with a start date', async function () { - this.timeout(20000) + this.timeout(60000) await server.videos.upload({ attributes: { name: 'video 7' } }) await waitJobs([ server ]) @@ -172,7 +173,7 @@ describe('Test logs', function () { }) it('Should get logs with an end date', async function () { - this.timeout(30000) + this.timeout(60000) await server.videos.upload({ attributes: { name: 'video 9' } }) await waitJobs([ server ]) -- cgit v1.2.3