Fix multiple servers test

This commit is contained in:
Chocobozzz 2017-11-22 18:22:06 +01:00
parent 40ff57078e
commit 35a097b813
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 6 deletions

View File

@ -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)