From ae468445b2bba97eb0419c9f4e3a58288d43c0c1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Oct 2023 15:57:11 +0200 Subject: [PATCH] Increase other test timeouts --- packages/tests/src/api/activitypub/cleaner.ts | 2 +- packages/tests/src/api/moderation/abuses.ts | 2 +- packages/tests/src/api/videos/video-channels.ts | 2 +- packages/tests/src/api/videos/video-playlists.ts | 2 +- packages/tests/src/api/videos/video-source.ts | 4 ++-- packages/tests/src/api/videos/video-storyboard.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/tests/src/api/activitypub/cleaner.ts b/packages/tests/src/api/activitypub/cleaner.ts index 4476aea85..20415b9a4 100644 --- a/packages/tests/src/api/activitypub/cleaner.ts +++ b/packages/tests/src/api/activitypub/cleaner.ts @@ -23,7 +23,7 @@ describe('Test AP cleaner', function () { let videoUUIDs: string[] before(async function () { - this.timeout(120000) + this.timeout(240000) const config = { federation: { diff --git a/packages/tests/src/api/moderation/abuses.ts b/packages/tests/src/api/moderation/abuses.ts index 649de224e..68f759435 100644 --- a/packages/tests/src/api/moderation/abuses.ts +++ b/packages/tests/src/api/moderation/abuses.ts @@ -21,7 +21,7 @@ describe('Test abuses', function () { let commands: AbusesCommand[] before(async function () { - this.timeout(50000) + this.timeout(120000) // Run servers servers = await createMultipleServers(2) diff --git a/packages/tests/src/api/videos/video-channels.ts b/packages/tests/src/api/videos/video-channels.ts index 531c41e18..c431fc0eb 100644 --- a/packages/tests/src/api/videos/video-channels.ts +++ b/packages/tests/src/api/videos/video-channels.ts @@ -523,7 +523,7 @@ describe('Test video channels', function () { }) it('Should list channels by updatedAt desc if a video has been uploaded', async function () { - this.timeout(30000) + this.timeout(60000) await servers[0].videos.upload({ attributes: { channelId: totoChannel } }) await waitJobs(servers) diff --git a/packages/tests/src/api/videos/video-playlists.ts b/packages/tests/src/api/videos/video-playlists.ts index 8908730cf..18fc21e19 100644 --- a/packages/tests/src/api/videos/video-playlists.ts +++ b/packages/tests/src/api/videos/video-playlists.ts @@ -537,7 +537,7 @@ describe('Test video playlists', function () { describe('Element timestamps', function () { it('Should create a playlist containing different startTimestamp/endTimestamp videos', async function () { - this.timeout(60000) + this.timeout(120000) const addVideo = (attributes: any) => { return commands[0].addElement({ playlistId: playlistServer1Id, attributes }) diff --git a/packages/tests/src/api/videos/video-source.ts b/packages/tests/src/api/videos/video-source.ts index 02d21b64b..3a13f7279 100644 --- a/packages/tests/src/api/videos/video-source.ts +++ b/packages/tests/src/api/videos/video-source.ts @@ -111,7 +111,7 @@ describe('Test a video file replacement', function () { }) it('Should replace a video file with transcoding enabled', async function () { - this.timeout(120000) + this.timeout(240000) const previousPaths: string[] = [] @@ -384,7 +384,7 @@ describe('Test a video file replacement', function () { }) it('Should replace a video file with transcoding enabled', async function () { - this.timeout(120000) + this.timeout(240000) const previousPaths: string[] = [] diff --git a/packages/tests/src/api/videos/video-storyboard.ts b/packages/tests/src/api/videos/video-storyboard.ts index 7d156aa7f..39890e3ea 100644 --- a/packages/tests/src/api/videos/video-storyboard.ts +++ b/packages/tests/src/api/videos/video-storyboard.ts @@ -139,7 +139,7 @@ describe('Test video storyboard', function () { }) it('Should generate a storyboard after torrent import', async function () { - this.timeout(120000) + this.timeout(240000) if (areHttpImportTestsDisabled()) return