ActivityPub-federated video streaming platform using P2P directly in your web browser
Increase tests timeout
Chocobozzzea01bf016750
diff --git a/packages/tests/src/api/check-params/video-chapters.ts b/packages/tests/src/api/check-params/video-chapters.tsindex c59f88e79c..481b6d1a0e 100644--- a/packages/tests/src/api/check-params/video-chapters.ts+++ b/packages/tests/src/api/check-params/video-chapters.ts@@ -19,7 +19,7 @@ describe('Test videos chapters API validator', function () {// ---------------------------------------------------------------before(async function () {- this.timeout(30000)+ this.timeout(60000)server = await createSingleServer(1)diff --git a/packages/tests/src/api/check-params/video-studio.ts b/packages/tests/src/api/check-params/video-studio.tsindex ae83f3590f..9931f7872d 100644--- a/packages/tests/src/api/check-params/video-studio.ts+++ b/packages/tests/src/api/check-params/video-studio.ts@@ -199,7 +199,7 @@ describe('Test video studio API validator', function () {})it('Should fail with a video that is already waiting for edition', async function () {- this.timeout(120000)+ this.timeout(360000)await command.createEditionTasks({videoId: videoUUID,@@ -257,7 +257,7 @@ describe('Test video studio API validator', function () {})it('Should succeed with the correct params', async function () {- this.timeout(120000)+ this.timeout(360000)await cut(0, 2, HttpStatusCode.NO_CONTENT_204)@@ -291,7 +291,7 @@ describe('Test video studio API validator', function () {})it('Should succeed with the correct params', async function () {- this.timeout(120000)+ this.timeout(360000)await addWatermark('custom-thumbnail.jpg', HttpStatusCode.NO_CONTENT_204)@@ -337,7 +337,7 @@ describe('Test video studio API validator', function () {})it('Should succeed with the correct params', async function () {- this.timeout(120000)+ this.timeout(360000)await addIntroOutro('add-intro', 'video_very_short_240p.mp4', HttpStatusCode.NO_CONTENT_204)await waitJobs([ server ])@@ -347,7 +347,7 @@ describe('Test video studio API validator', function () {})it('Should check total quota when creating the task', async function () {- this.timeout(120000)+ this.timeout(360000)const user = await server.users.create({ username: 'user_quota_1' })const token = await server.login.getAccessToken('user_quota_1')diff --git a/packages/tests/src/api/notifications/admin-notifications.ts b/packages/tests/src/api/notifications/admin-notifications.tsindex 2186dc55a0..e183caf957 100644--- a/packages/tests/src/api/notifications/admin-notifications.ts+++ b/packages/tests/src/api/notifications/admin-notifications.ts@@ -66,7 +66,7 @@ describe('Test admin notifications', function () {joinPeerTubeServer.setLatestVersion('1.4.2')- await wait(3000)+ await wait(4500)await checkNewPeerTubeVersion({ ...baseParams, latestVersion: '1.4.2', checkType: 'absence' })})@@ -75,14 +75,14 @@ describe('Test admin notifications', function () {joinPeerTubeServer.setLatestVersion('15.4.2')- await wait(3000)+ await wait(4500)await checkNewPeerTubeVersion({ ...baseParams, latestVersion: '15.4.2', checkType: 'presence' })})it('Should not send the same notification to admins', async function () {this.timeout(30000)- await wait(3000)+ await wait(4500)expect(adminNotifications.filter(n => n.type === UserNotificationType.NEW_PEERTUBE_VERSION)).to.have.lengthOf(1)})@@ -97,7 +97,7 @@ describe('Test admin notifications', function () {joinPeerTubeServer.setLatestVersion('15.4.3')- await wait(3000)+ await wait(4500)await checkNewPeerTubeVersion({ ...baseParams, latestVersion: '15.4.3', checkType: 'presence' })expect(adminNotifications.filter(n => n.type === UserNotificationType.NEW_PEERTUBE_VERSION)).to.have.lengthOf(2)})diff --git a/packages/tests/src/api/notifications/comments-notifications.ts b/packages/tests/src/api/notifications/comments-notifications.tsindex 5647d12864..6c29436a6e 100644--- a/packages/tests/src/api/notifications/comments-notifications.ts+++ b/packages/tests/src/api/notifications/comments-notifications.ts@@ -39,7 +39,7 @@ describe('Test comments notifications', function () {})it('Should not send a new comment notification after a comment on another video', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })@@ -51,7 +51,7 @@ describe('Test comments notifications', function () {})it('Should not send a new comment notification if I comment my own video', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })@@ -63,7 +63,7 @@ describe('Test comments notifications', function () {})it('Should not send a new comment notification if the account is muted', async function () {- this.timeout(30000)+ this.timeout(60000)await servers[0].blocklist.addToMyBlocklist({ token: userToken, account: 'root' })@@ -79,7 +79,7 @@ describe('Test comments notifications', function () {})it('Should send a new comment notification after a local comment on my video', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })@@ -91,7 +91,7 @@ describe('Test comments notifications', function () {})it('Should send a new comment notification after a remote comment on my video', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })@@ -109,7 +109,7 @@ describe('Test comments notifications', function () {})it('Should send a new comment notification after a local reply on my video', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })@@ -122,7 +122,7 @@ describe('Test comments notifications', function () {})it('Should send a new comment notification after a remote reply on my video', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })await waitJobs(servers)@@ -148,7 +148,7 @@ describe('Test comments notifications', function () {})it('Should convert markdown in comment to html', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'cool video' } })@@ -178,7 +178,7 @@ describe('Test comments notifications', function () {})it('Should not send a new mention comment notification if I mention the video owner', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ token: userToken, attributes: { name: 'super video' } })@@ -189,7 +189,7 @@ describe('Test comments notifications', function () {})it('Should not send a new mention comment notification if I mention myself', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })@@ -200,7 +200,7 @@ describe('Test comments notifications', function () {})it('Should not send a new mention notification if the account is muted', async function () {- this.timeout(30000)+ this.timeout(60000)await servers[0].blocklist.addToMyBlocklist({ token: userToken, account: 'root' })@@ -215,7 +215,7 @@ describe('Test comments notifications', function () {})it('Should not send a new mention notification if the remote account mention a local account', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })@@ -229,7 +229,7 @@ describe('Test comments notifications', function () {})it('Should send a new mention notification after local comments', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })@@ -245,7 +245,7 @@ describe('Test comments notifications', function () {})it('Should send a new mention notification after remote comments', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid, shortUUID } = await servers[0].videos.upload({ attributes: { name: 'super video' } })@@ -277,7 +277,7 @@ describe('Test comments notifications', function () {})it('Should convert markdown in comment to html', async function () {- this.timeout(30000)+ this.timeout(60000)const { uuid } = await servers[0].videos.upload({ attributes: { name: 'super video' } })diff --git a/packages/tests/src/api/notifications/user-notifications.ts b/packages/tests/src/api/notifications/user-notifications.tsindex f62388095c..87913b2c1f 100644--- a/packages/tests/src/api/notifications/user-notifications.ts+++ b/packages/tests/src/api/notifications/user-notifications.ts@@ -233,7 +233,7 @@ describe('Test user notifications', function () {})it('Should not send a notification if the wait transcoding is false', async function () {- this.timeout(100_000)+ this.timeout(240000)await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: false })await waitJobs(servers)@@ -245,7 +245,7 @@ describe('Test user notifications', function () {})it('Should send a notification even if the video is not transcoded in other resolutions', async function () {- this.timeout(100_000)+ this.timeout(240000)const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: true, fixture: 'video_short_240p.mp4' })await waitJobs(servers)@@ -254,7 +254,7 @@ describe('Test user notifications', function () {})it('Should send a notification with a transcoded video', async function () {- this.timeout(100_000)+ this.timeout(240000)const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: true })await waitJobs(servers)@@ -263,7 +263,7 @@ describe('Test user notifications', function () {})it('Should send a notification when an imported video is transcoded', async function () {- this.timeout(120000)+ this.timeout(240000)const name = 'video import ' + buildUUID()diff --git a/packages/tests/src/api/server/stats.ts b/packages/tests/src/api/server/stats.tsindex 32ab323ce4..6c2d4afe10 100644--- a/packages/tests/src/api/server/stats.ts+++ b/packages/tests/src/api/server/stats.ts@@ -232,7 +232,7 @@ describe('Test stats (excluding redundancy)', function () {})it('Should have the correct AP stats', async function () {- this.timeout(120000)+ this.timeout(240000)await servers[0].config.disableTranscoding()diff --git a/packages/tests/src/api/transcoding/transcoder.ts b/packages/tests/src/api/transcoding/transcoder.tsindex f3f4cc7a50..bce525fb0f 100644--- a/packages/tests/src/api/transcoding/transcoder.ts+++ b/packages/tests/src/api/transcoding/transcoder.ts@@ -489,7 +489,7 @@ describe('Test video transcoding', function () {})it('Should downscale to the closest divisor standard framerate', async function () {- this.timeout(200_000)+ this.timeout(360_000)let tempFixturePath: stringdiff --git a/packages/tests/src/api/videos/video-playlists.ts b/packages/tests/src/api/videos/video-playlists.tsindex 578d01093d..77c8d6436e 100644--- a/packages/tests/src/api/videos/video-playlists.ts+++ b/packages/tests/src/api/videos/video-playlists.ts@@ -74,7 +74,7 @@ describe('Test video playlists', function () {let commands: PlaylistsCommand[]before(async function () {- this.timeout(240000)+ this.timeout(360000)servers = await createMultipleServers(3)