]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase tests waits
authorChocobozzz <me@florianbigard.com>
Thu, 12 Nov 2020 07:51:42 +0000 (08:51 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 12 Nov 2020 15:29:32 +0000 (16:29 +0100)
server/tests/api/live/live.ts
shared/extra-utils/videos/live.ts

index de3181928dfe1e4aec0c3f4f5fa5254ab4b6fecf..29081c6cca644357e9e8926da27af9b1138ee0a5 100644 (file)
@@ -462,17 +462,17 @@ describe('Test live', function () {
       await viewVideo(servers[0].url, liveVideoId)
       await viewVideo(servers[0].url, liveVideoId)
 
-      await wait(5000)
+      await wait(7000)
 
       await waitJobs(servers)
 
       await countViews(1)
     })
 
-    it('Should wait 5 seconds and display 0 views', async function () {
+    it('Should wait and display 0 views', async function () {
       this.timeout(30000)
 
-      await wait(5000)
+      await wait(7000)
       await waitJobs(servers)
 
       await countViews(0)
@@ -485,7 +485,7 @@ describe('Test live', function () {
       await viewVideo(servers[1].url, liveVideoId)
       await viewVideo(servers[1].url, liveVideoId)
 
-      await wait(5000)
+      await wait(7000)
       await waitJobs(servers)
 
       await countViews(2)
index f90dd420d0bdb4243ab931c2dd5798c36e1aa8d7..4bfcc583e49c4580a720d452e9d2054fa8d035b9 100644 (file)
@@ -111,7 +111,7 @@ async function testFfmpegStreamError (command: ffmpeg.FfmpegCommand, shouldHaveE
   let error: Error
 
   try {
-    await waitFfmpegUntilError(command, 10000)
+    await waitFfmpegUntilError(command, 15000)
   } catch (err) {
     error = err
   }