diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-22 18:22:06 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 35a097b813594eab25ce4614c6a04c5591f3d938 (patch) | |
tree | 8a952a9d0e0bed8e2148bf9c6dbe97fafe75f0f1 | |
parent | 40ff57078e15d5b86ee6b71e198b95d3feb78eaf (diff) | |
download | PeerTube-35a097b813594eab25ce4614c6a04c5591f3d938.tar.gz PeerTube-35a097b813594eab25ce4614c6a04c5591f3d938.tar.zst PeerTube-35a097b813594eab25ce4614c6a04c5591f3d938.zip |
Fix multiple servers test
-rw-r--r-- | server/tests/api/multiple-servers.ts | 12 |
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) |