]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase test timeouts
authorChocobozzz <me@florianbigard.com>
Mon, 12 Sep 2022 06:29:01 +0000 (08:29 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 12 Sep 2022 06:29:01 +0000 (08:29 +0200)
server/tests/api/server/bulk.ts
server/tests/api/server/config.ts
server/tests/api/server/open-telemetry.ts
server/tests/api/server/reverse-proxy.ts
server/tests/api/server/stats.ts
server/tests/api/users/user-videos.ts

index 05762c7c2c6a92f325843c2bcd4da99f67c9b5ca..7c8b40cbe065dc52b35e358a954c6e838ee1cec6 100644 (file)
@@ -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)
 
index b8c99e804621e1f5b896910d7c49a3922890c69d..22446fe0c9c2863ccf8dda6d724af9a8f2e18e87 100644 (file)
@@ -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()
 
index d8b1194c6c72ea4e5d14df1e83bc989a9ab9d5d5..43a27cc32b64990470fd2baf516139793ba5602b 100644 (file)
@@ -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
index 0a1565faff36b0e1cc75d0ac7217cee98e60fdc6..d882f0bde79fe70e8c65069da6837eaed9adaed1 100644 (file)
@@ -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 })
index 762fc422df1ab156734a4c33f2e27a46109a7a2b..83b0e73d6b1b3c9ab5e68785e23a8c7ebaf8ac52 100644 (file)
@@ -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: {
index 4343c1e49538752b2d03151e46b5081776e2622e..0351ae853580ef297f8c09489585ed05ff2e1ac0 100644 (file)
@@ -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)