]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase timeouts
authorChocobozzz <me@florianbigard.com>
Fri, 5 May 2023 12:35:59 +0000 (14:35 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Tue, 9 May 2023 06:57:34 +0000 (08:57 +0200)
.github/workflows/test.yml
server/tests/api/live/live-constraints.ts
server/tests/api/live/live.ts
server/tests/peertube-runner/client-cli.ts

index 2288bcd3f699d7be53475b255e753d459ab792d8..678b0674bc24c3cd4396817d9a7be3812cc1b54d 100644 (file)
@@ -77,7 +77,7 @@ jobs:
 
       - name: Run Test
         # external-plugins tests only run on schedule
-        if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
+        if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
         env:
           AKISMET_KEY: ${{ secrets.AKISMET_KEY }}
         run: npm run ci -- ${{ matrix.test_suite }}
index fabb8798dce1de3054cfca1c526dbb4a1ed832c4..59e27cc62680e2015d160e7f33929f1b05f83547 100644 (file)
@@ -190,7 +190,7 @@ describe('Test live constraints', function () {
   })
 
   it('Should have max duration limit', async function () {
-    this.timeout(60000)
+    this.timeout(240000)
 
     await servers[0].config.updateCustomSubConfig({
       newConfig: {
index f9b0d257bc846c9863663e6b8dbef143358afb13..592548b52b9dcc1f2bd22337fac35a28c978ecca 100644 (file)
@@ -447,7 +447,7 @@ describe('Test live', function () {
     })
 
     it('Should enable transcoding with some resolutions', async function () {
-      this.timeout(120000)
+      this.timeout(240000)
 
       const resolutions = [ 240, 480 ]
       await updateConf(resolutions)
@@ -499,7 +499,7 @@ describe('Test live', function () {
     })
 
     it('Should enable transcoding with some resolutions and correctly save them', async function () {
-      this.timeout(400_000)
+      this.timeout(500_000)
 
       const resolutions = [ 240, 360, 720 ]
 
@@ -586,7 +586,7 @@ describe('Test live', function () {
     })
 
     it('Should not generate an upper resolution than original file', async function () {
-      this.timeout(400_000)
+      this.timeout(500_000)
 
       const resolutions = [ 240, 480 ]
       await updateConf(resolutions)
index 90bf73ef779408aea0d0f62e8b1fda1b89d74211..ff70e599feb2bde01b328ea067d7b7081641cbb9 100644 (file)
@@ -64,8 +64,8 @@ describe('Test peertube-runner program client CLI', function () {
   })
 
   after(async function () {
-    await cleanupTests([ server ])
-
     peertubeRunner.kill()
+
+    await cleanupTests([ server ])
   })
 })