aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/multiple-servers.ts
diff options
context:
space:
mode:
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) {