From 4fe7cde283b9b88a2917824e34e23356849b33b8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 29 Dec 2022 10:14:43 +0100 Subject: Fix build --- server/tests/api/check-params/redundancy.ts | 2 +- .../api/notifications/moderation-notifications.ts | 18 +++++++++++++----- .../api/object-storage/video-static-file-privacy.ts | 4 ++-- 3 files changed, 16 insertions(+), 8 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/check-params/redundancy.ts b/server/tests/api/check-params/redundancy.ts index 908407b9a..73dfd489d 100644 --- a/server/tests/api/check-params/redundancy.ts +++ b/server/tests/api/check-params/redundancy.ts @@ -24,7 +24,7 @@ describe('Test server redundancy API validators', function () { // --------------------------------------------------------------- before(async function () { - this.timeout(80000) + this.timeout(160000) servers = await createMultipleServers(2) diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index df239f92e..c7b9b5fb0 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts @@ -500,7 +500,7 @@ describe('Test moderation notifications', function () { }) it('Should send notification to moderators on new video with auto-blacklist', async function () { - this.timeout(50000) + this.timeout(120000) videoName = 'video with auto-blacklist ' + buildUUID() const video = await servers[0].videos.upload({ token: userToken1, attributes: { name: videoName } }) @@ -512,10 +512,14 @@ describe('Test moderation notifications', function () { }) it('Should not send video publish notification if auto-blacklisted', async function () { + this.timeout(120000) + await checkVideoIsPublished({ ...userBaseParams, videoName, shortUUID, checkType: 'absence' }) }) it('Should not send a local user subscription notification if auto-blacklisted', async function () { + this.timeout(120000) + await checkNewVideoFromSubscription({ ...adminBaseParamsServer1, videoName, shortUUID, checkType: 'absence' }) }) @@ -524,7 +528,7 @@ describe('Test moderation notifications', function () { }) it('Should send video published and unblacklist after video unblacklisted', async function () { - this.timeout(40000) + this.timeout(120000) await servers[0].blacklist.remove({ videoId: uuid }) @@ -537,15 +541,19 @@ describe('Test moderation notifications', function () { }) it('Should send a local user subscription notification after removed from blacklist', async function () { + this.timeout(120000) + await checkNewVideoFromSubscription({ ...adminBaseParamsServer1, videoName, shortUUID, checkType: 'presence' }) }) it('Should send a remote user subscription notification after removed from blacklist', async function () { + this.timeout(120000) + await checkNewVideoFromSubscription({ ...adminBaseParamsServer2, videoName, shortUUID, checkType: 'presence' }) }) it('Should send unblacklist but not published/subscription notes after unblacklisted if scheduled update pending', async function () { - this.timeout(50000) + this.timeout(120000) const updateAt = new Date(new Date().getTime() + 1000000) @@ -576,7 +584,7 @@ describe('Test moderation notifications', function () { }) it('Should not send publish/subscription notifications after scheduled update if video still auto-blacklisted', async function () { - this.timeout(40000) + this.timeout(120000) // In 2 seconds const updateAt = new Date(new Date().getTime() + 2000) @@ -601,7 +609,7 @@ describe('Test moderation notifications', function () { }) it('Should not send a notification to moderators on new video without auto-blacklist', async function () { - this.timeout(50000) + this.timeout(120000) const name = 'video without auto-blacklist ' + buildUUID() diff --git a/server/tests/api/object-storage/video-static-file-privacy.ts b/server/tests/api/object-storage/video-static-file-privacy.ts index 71ad35a43..869d437d5 100644 --- a/server/tests/api/object-storage/video-static-file-privacy.ts +++ b/server/tests/api/object-storage/video-static-file-privacy.ts @@ -120,7 +120,7 @@ describe('Object storage for video static file privacy', function () { // --------------------------------------------------------------------------- it('Should upload a private video and have appropriate object storage ACL', async function () { - this.timeout(60000) + this.timeout(120000) { const { uuid } = await server.videos.quickUpload({ name: 'video', privacy: VideoPrivacy.PRIVATE }) @@ -138,7 +138,7 @@ describe('Object storage for video static file privacy', function () { }) it('Should upload a public video and have appropriate object storage ACL', async function () { - this.timeout(60000) + this.timeout(120000) const { uuid } = await server.videos.quickUpload({ name: 'video', privacy: VideoPrivacy.UNLISTED }) await waitJobs([ server ]) -- cgit v1.2.3