aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/tests/api/multiple-servers.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/multiple-servers.ts b/server/tests/api/multiple-servers.ts
index cdbd24f56..405dcf625 100644
--- a/server/tests/api/multiple-servers.ts
+++ b/server/tests/api/multiple-servers.ts
@@ -175,7 +175,7 @@ describe('Test multiple servers', function () {
175 await uploadVideo(servers[1].url, userAccessToken, videoAttributes) 175 await uploadVideo(servers[1].url, userAccessToken, videoAttributes)
176 176
177 // Transcoding 177 // Transcoding
178 await wait(10000) 178 await wait(15000)
179 179
180 // All servers should have this video 180 // All servers should have this video
181 for (const server of servers) { 181 for (const server of servers) {
@@ -537,7 +537,7 @@ describe('Test multiple servers', function () {
537 // Initialize base videos for future comparisons 537 // Initialize base videos for future comparisons
538 if (baseVideos === null) { 538 if (baseVideos === null) {
539 baseVideos = videos 539 baseVideos = videos
540 return 540 continue
541 } 541 }
542 542
543 for (const baseVideo of baseVideos) { 543 for (const baseVideo of baseVideos) {
@@ -572,14 +572,14 @@ describe('Test multiple servers', function () {
572 // Initialize base videos for future comparisons 572 // Initialize base videos for future comparisons
573 if (baseVideos === null) { 573 if (baseVideos === null) {
574 baseVideos = videos 574 baseVideos = videos
575 return 575 continue
576 } 576 }
577 577
578 baseVideos.forEach(baseVideo => { 578 for (const baseVideo of baseVideos) {
579 const sameVideo = videos.find(video => video.name === baseVideo.name) 579 const sameVideo = videos.find(video => video.name === baseVideo.name)
580 expect(baseVideo.likes).to.equal(sameVideo.likes) 580 expect(baseVideo.likes).to.equal(sameVideo.likes)
581 expect(baseVideo.dislikes).to.equal(sameVideo.dislikes) 581 expect(baseVideo.dislikes).to.equal(sameVideo.dislikes)
582 }) 582 }
583 } 583 }
584 }) 584 })
585 }) 585 })
@@ -680,7 +680,7 @@ describe('Test multiple servers', function () {
680 680
681 if (baseVideo === null) { 681 if (baseVideo === null) {
682 baseVideo = video 682 baseVideo = video
683 return 683 continue
684 } 684 }
685 685
686 expect(baseVideo.name).to.equal(video.name) 686 expect(baseVideo.name).to.equal(video.name)