aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-29 16:26:25 +0200
committerChocobozzz <me@florianbigard.com>2018-08-30 15:03:18 +0200
commit6b6168606bc86430f6b7821c9d5f1c80d0425ebf (patch)
tree9aea6cf0875c9fee30c373eb4924b12d47d1e23c /server/tests/api/videos/multiple-servers.ts
parent2d9fea161fd4fc73994fc77951bafdccdc2071fd (diff)
downloadPeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.tar.gz
PeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.tar.zst
PeerTube-6b6168606bc86430f6b7821c9d5f1c80d0425ebf.zip
Bufferize videos views in redis
Diffstat (limited to 'server/tests/api/videos/multiple-servers.ts')
-rw-r--r--server/tests/api/videos/multiple-servers.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/server/tests/api/videos/multiple-servers.ts b/server/tests/api/videos/multiple-servers.ts
index c551ccc59..4553ee855 100644
--- a/server/tests/api/videos/multiple-servers.ts
+++ b/server/tests/api/videos/multiple-servers.ts
@@ -492,7 +492,7 @@ describe('Test multiple servers', function () {
492 }) 492 })
493 493
494 it('Should view multiple videos on owned servers', async function () { 494 it('Should view multiple videos on owned servers', async function () {
495 this.timeout(15000) 495 this.timeout(30000)
496 496
497 const tasks: Promise<any>[] = [] 497 const tasks: Promise<any>[] = []
498 await viewVideo(servers[2].url, localVideosServer3[0]) 498 await viewVideo(servers[2].url, localVideosServer3[0])
@@ -511,6 +511,9 @@ describe('Test multiple servers', function () {
511 511
512 await waitJobs(servers) 512 await waitJobs(servers)
513 513
514 // Wait the repeatable job
515 await wait(6000)
516
514 for (const server of servers) { 517 for (const server of servers) {
515 const res = await getVideosList(server.url) 518 const res = await getVideosList(server.url)
516 519
@@ -524,7 +527,7 @@ describe('Test multiple servers', function () {
524 }) 527 })
525 528
526 it('Should view multiple videos on each servers', async function () { 529 it('Should view multiple videos on each servers', async function () {
527 this.timeout(15000) 530 this.timeout(30000)
528 531
529 const tasks: Promise<any>[] = [] 532 const tasks: Promise<any>[] = []
530 tasks.push(viewVideo(servers[0].url, remoteVideosServer1[0])) 533 tasks.push(viewVideo(servers[0].url, remoteVideosServer1[0]))
@@ -542,6 +545,9 @@ describe('Test multiple servers', function () {
542 545
543 await waitJobs(servers) 546 await waitJobs(servers)
544 547
548 // Wait the repeatable job
549 await wait(8000)
550
545 let baseVideos = null 551 let baseVideos = null
546 552
547 for (const server of servers) { 553 for (const server of servers) {