From 0cbcaccb8380f93980661d358b6db5d671a1577f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Sep 2022 08:29:01 +0200 Subject: Increase test timeouts --- server/tests/api/server/bulk.ts | 2 +- server/tests/api/server/config.ts | 2 +- server/tests/api/server/open-telemetry.ts | 2 ++ server/tests/api/server/reverse-proxy.ts | 4 ++-- server/tests/api/server/stats.ts | 2 +- server/tests/api/users/user-videos.ts | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) (limited to 'server') diff --git a/server/tests/api/server/bulk.ts b/server/tests/api/server/bulk.ts index 05762c7c2..7c8b40cbe 100644 --- a/server/tests/api/server/bulk.ts +++ b/server/tests/api/server/bulk.ts @@ -22,7 +22,7 @@ describe('Test bulk actions', function () { let bulkCommand: BulkCommand before(async function () { - this.timeout(30000) + this.timeout(120000) servers = await createMultipleServers(2) diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index b8c99e804..22446fe0c 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts @@ -506,7 +506,7 @@ describe('Test config', function () { }) it('Should have the correct updated video allowed extensions', async function () { - this.timeout(10000) + this.timeout(30000) const data = await server.config.getConfig() diff --git a/server/tests/api/server/open-telemetry.ts b/server/tests/api/server/open-telemetry.ts index d8b1194c6..43a27cc32 100644 --- a/server/tests/api/server/open-telemetry.ts +++ b/server/tests/api/server/open-telemetry.ts @@ -12,6 +12,8 @@ describe('Open Telemetry', function () { const metricsUrl = 'http://localhost:9092/metrics' it('Should not enable open telemetry metrics', async function () { + this.timeout(60000) + server = await createSingleServer(1) let hasError = false diff --git a/server/tests/api/server/reverse-proxy.ts b/server/tests/api/server/reverse-proxy.ts index 0a1565faf..d882f0bde 100644 --- a/server/tests/api/server/reverse-proxy.ts +++ b/server/tests/api/server/reverse-proxy.ts @@ -11,7 +11,7 @@ describe('Test application behind a reverse proxy', function () { let videoId: string before(async function () { - this.timeout(30000) + this.timeout(60000) const config = { rates_limit: { @@ -42,7 +42,7 @@ describe('Test application behind a reverse proxy', function () { }) it('Should view a video only once with the same IP by default', async function () { - this.timeout(20000) + this.timeout(40000) await server.views.simulateView({ id: videoId }) await server.views.simulateView({ id: videoId }) diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts index 762fc422d..83b0e73d6 100644 --- a/server/tests/api/server/stats.ts +++ b/server/tests/api/server/stats.ts @@ -185,7 +185,7 @@ describe('Test stats (excluding redundancy)', function () { }) it('Should correctly count video file sizes if transcoding is enabled', async function () { - this.timeout(60000) + this.timeout(120000) await servers[0].config.updateCustomSubConfig({ newConfig: { diff --git a/server/tests/api/users/user-videos.ts b/server/tests/api/users/user-videos.ts index 4343c1e49..0351ae853 100644 --- a/server/tests/api/users/user-videos.ts +++ b/server/tests/api/users/user-videos.ts @@ -20,7 +20,7 @@ describe('Test user videos', function () { let anotherUserToken: string before(async function () { - this.timeout(30000) + this.timeout(120000) server = await createSingleServer(1) -- cgit v1.2.3