From 9d1e41e8bbd9afd961f2dd48c791a3be114e878d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 May 2023 09:02:42 +0200 Subject: [PATCH] Increase timeouts --- .../notifications/moderation-notifications.ts | 16 ++++++++-------- .../api/transcoding/update-while-transcoding.ts | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index bb11a08aa..fa75182e1 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts @@ -188,7 +188,7 @@ describe('Test moderation notifications', function () { }) it('Should send a notification to reporter if the abuse has been accepted', async function () { - this.timeout(10000) + this.timeout(30000) await servers[0].abuses.update({ abuseId, body: { state: AbuseState.ACCEPTED } }) await waitJobs(servers) @@ -197,7 +197,7 @@ describe('Test moderation notifications', function () { }) it('Should send a notification to reporter if the abuse has been rejected', async function () { - this.timeout(10000) + this.timeout(30000) await servers[0].abuses.update({ abuseId, body: { state: AbuseState.REJECTED } }) await waitJobs(servers) @@ -242,7 +242,7 @@ describe('Test moderation notifications', function () { }) it('Should send a notification to reporter on new message', async function () { - this.timeout(10000) + this.timeout(30000) const message = 'my super message to users' await servers[0].abuses.addMessage({ abuseId, message }) @@ -252,7 +252,7 @@ describe('Test moderation notifications', function () { }) it('Should not send a notification to the admin if sent by the admin', async function () { - this.timeout(10000) + this.timeout(30000) const message = 'my super message that should not be sent to the admin' await servers[0].abuses.addMessage({ abuseId, message }) @@ -263,7 +263,7 @@ describe('Test moderation notifications', function () { }) it('Should send a notification to moderators', async function () { - this.timeout(10000) + this.timeout(30000) const message = 'my super message to moderators' await servers[0].abuses.addMessage({ token: userToken1, abuseId: abuseId2, message }) @@ -274,7 +274,7 @@ describe('Test moderation notifications', function () { }) it('Should not send a notification to reporter if sent by the reporter', async function () { - this.timeout(10000) + this.timeout(30000) const message = 'my super message that should not be sent to reporter' await servers[0].abuses.addMessage({ token: userToken1, abuseId: abuseId2, message }) @@ -298,7 +298,7 @@ describe('Test moderation notifications', function () { }) it('Should send a notification to video owner on blacklist', async function () { - this.timeout(10000) + this.timeout(30000) const name = 'video for abuse ' + buildUUID() const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken1, attributes: { name } }) @@ -310,7 +310,7 @@ describe('Test moderation notifications', function () { }) it('Should send a notification to video owner on unblacklist', async function () { - this.timeout(10000) + this.timeout(30000) const name = 'video for abuse ' + buildUUID() const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken1, attributes: { name } }) diff --git a/server/tests/api/transcoding/update-while-transcoding.ts b/server/tests/api/transcoding/update-while-transcoding.ts index 8e32ea069..f4d728118 100644 --- a/server/tests/api/transcoding/update-while-transcoding.ts +++ b/server/tests/api/transcoding/update-while-transcoding.ts @@ -38,6 +38,7 @@ describe('Test update video privacy while transcoding', function () { }) it('Should not have an error while quickly updating a private video to public after upload #2', async function () { + this.timeout(60000) { const attributes = { @@ -56,6 +57,8 @@ describe('Test update video privacy while transcoding', function () { }) it('Should not have an error while quickly updating a private video to public after upload #3', async function () { + this.timeout(60000) + const attributes = { name: 'quick update 3', privacy: VideoPrivacy.PRIVATE -- 2.41.0