aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-12 08:29:01 +0200
committerChocobozzz <me@florianbigard.com>2022-09-12 08:29:01 +0200
commit0cbcaccb8380f93980661d358b6db5d671a1577f (patch)
treef237a96e30d54e57c6ca96e5709062040ead0f2c /server/tests/api
parentab2e90f3cae7cfb54a9abbad9779d31959120614 (diff)
downloadPeerTube-0cbcaccb8380f93980661d358b6db5d671a1577f.tar.gz
PeerTube-0cbcaccb8380f93980661d358b6db5d671a1577f.tar.zst
PeerTube-0cbcaccb8380f93980661d358b6db5d671a1577f.zip
Increase test timeouts
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/bulk.ts2
-rw-r--r--server/tests/api/server/config.ts2
-rw-r--r--server/tests/api/server/open-telemetry.ts2
-rw-r--r--server/tests/api/server/reverse-proxy.ts4
-rw-r--r--server/tests/api/server/stats.ts2
-rw-r--r--server/tests/api/users/user-videos.ts2
6 files changed, 8 insertions, 6 deletions
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 () {
22 let bulkCommand: BulkCommand 22 let bulkCommand: BulkCommand
23 23
24 before(async function () { 24 before(async function () {
25 this.timeout(30000) 25 this.timeout(120000)
26 26
27 servers = await createMultipleServers(2) 27 servers = await createMultipleServers(2)
28 28
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 () {
506 }) 506 })
507 507
508 it('Should have the correct updated video allowed extensions', async function () { 508 it('Should have the correct updated video allowed extensions', async function () {
509 this.timeout(10000) 509 this.timeout(30000)
510 510
511 const data = await server.config.getConfig() 511 const data = await server.config.getConfig()
512 512
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 () {
12 const metricsUrl = 'http://localhost:9092/metrics' 12 const metricsUrl = 'http://localhost:9092/metrics'
13 13
14 it('Should not enable open telemetry metrics', async function () { 14 it('Should not enable open telemetry metrics', async function () {
15 this.timeout(60000)
16
15 server = await createSingleServer(1) 17 server = await createSingleServer(1)
16 18
17 let hasError = false 19 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 () {
11 let videoId: string 11 let videoId: string
12 12
13 before(async function () { 13 before(async function () {
14 this.timeout(30000) 14 this.timeout(60000)
15 15
16 const config = { 16 const config = {
17 rates_limit: { 17 rates_limit: {
@@ -42,7 +42,7 @@ describe('Test application behind a reverse proxy', function () {
42 }) 42 })
43 43
44 it('Should view a video only once with the same IP by default', async function () { 44 it('Should view a video only once with the same IP by default', async function () {
45 this.timeout(20000) 45 this.timeout(40000)
46 46
47 await server.views.simulateView({ id: videoId }) 47 await server.views.simulateView({ id: videoId })
48 await server.views.simulateView({ id: videoId }) 48 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 () {
185 }) 185 })
186 186
187 it('Should correctly count video file sizes if transcoding is enabled', async function () { 187 it('Should correctly count video file sizes if transcoding is enabled', async function () {
188 this.timeout(60000) 188 this.timeout(120000)
189 189
190 await servers[0].config.updateCustomSubConfig({ 190 await servers[0].config.updateCustomSubConfig({
191 newConfig: { 191 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 () {
20 let anotherUserToken: string 20 let anotherUserToken: string
21 21
22 before(async function () { 22 before(async function () {
23 this.timeout(30000) 23 this.timeout(120000)
24 24
25 server = await createSingleServer(1) 25 server = await createSingleServer(1)
26 26