aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-12 08:51:42 +0100
committerChocobozzz <me@florianbigard.com>2020-11-12 16:29:32 +0100
commit2a9562fc5894509e63016b1fe09f6dce0c4b6e5e (patch)
treeb6fe86edc5cc337975b114fc672880c0476dbedb
parentb8fa24491c37fd7c0cca562a9469dfb254171919 (diff)
downloadPeerTube-2a9562fc5894509e63016b1fe09f6dce0c4b6e5e.tar.gz
PeerTube-2a9562fc5894509e63016b1fe09f6dce0c4b6e5e.tar.zst
PeerTube-2a9562fc5894509e63016b1fe09f6dce0c4b6e5e.zip
Increase tests waits
-rw-r--r--server/tests/api/live/live.ts8
-rw-r--r--shared/extra-utils/videos/live.ts2
2 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts
index de3181928..29081c6cc 100644
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@ -462,17 +462,17 @@ describe('Test live', function () {
462 await viewVideo(servers[0].url, liveVideoId) 462 await viewVideo(servers[0].url, liveVideoId)
463 await viewVideo(servers[0].url, liveVideoId) 463 await viewVideo(servers[0].url, liveVideoId)
464 464
465 await wait(5000) 465 await wait(7000)
466 466
467 await waitJobs(servers) 467 await waitJobs(servers)
468 468
469 await countViews(1) 469 await countViews(1)
470 }) 470 })
471 471
472 it('Should wait 5 seconds and display 0 views', async function () { 472 it('Should wait and display 0 views', async function () {
473 this.timeout(30000) 473 this.timeout(30000)
474 474
475 await wait(5000) 475 await wait(7000)
476 await waitJobs(servers) 476 await waitJobs(servers)
477 477
478 await countViews(0) 478 await countViews(0)
@@ -485,7 +485,7 @@ describe('Test live', function () {
485 await viewVideo(servers[1].url, liveVideoId) 485 await viewVideo(servers[1].url, liveVideoId)
486 await viewVideo(servers[1].url, liveVideoId) 486 await viewVideo(servers[1].url, liveVideoId)
487 487
488 await wait(5000) 488 await wait(7000)
489 await waitJobs(servers) 489 await waitJobs(servers)
490 490
491 await countViews(2) 491 await countViews(2)
diff --git a/shared/extra-utils/videos/live.ts b/shared/extra-utils/videos/live.ts
index f90dd420d..4bfcc583e 100644
--- a/shared/extra-utils/videos/live.ts
+++ b/shared/extra-utils/videos/live.ts
@@ -111,7 +111,7 @@ async function testFfmpegStreamError (command: ffmpeg.FfmpegCommand, shouldHaveE
111 let error: Error 111 let error: Error
112 112
113 try { 113 try {
114 await waitFfmpegUntilError(command, 10000) 114 await waitFfmpegUntilError(command, 15000)
115 } catch (err) { 115 } catch (err) {
116 error = err 116 error = err
117 } 117 }