From 35a097b813594eab25ce4614c6a04c5591f3d938 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Nov 2017 18:22:06 +0100 Subject: Fix multiple servers test --- server/tests/api/multiple-servers.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'server/tests/api') 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 () { await uploadVideo(servers[1].url, userAccessToken, videoAttributes) // Transcoding - await wait(10000) + await wait(15000) // All servers should have this video for (const server of servers) { @@ -537,7 +537,7 @@ describe('Test multiple servers', function () { // Initialize base videos for future comparisons if (baseVideos === null) { baseVideos = videos - return + continue } for (const baseVideo of baseVideos) { @@ -572,14 +572,14 @@ describe('Test multiple servers', function () { // Initialize base videos for future comparisons if (baseVideos === null) { baseVideos = videos - return + continue } - baseVideos.forEach(baseVideo => { + for (const baseVideo of baseVideos) { const sameVideo = videos.find(video => video.name === baseVideo.name) expect(baseVideo.likes).to.equal(sameVideo.likes) expect(baseVideo.dislikes).to.equal(sameVideo.dislikes) - }) + } } }) }) @@ -680,7 +680,7 @@ describe('Test multiple servers', function () { if (baseVideo === null) { baseVideo = video - return + continue } expect(baseVideo.name).to.equal(video.name) -- cgit v1.2.3