X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fmultiple-pods.js;h=c3ee77f0c98f73d2b07b364679909c69bcdf58f3;hb=5fe7e898316e18369c3e1aba307b55077adc7bfb;hp=feba68d743f2ffac9118311a9a4142fc223bdabd;hpb=62326afb151a1062253ac8b08bb62ce3f01e1267;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.js index feba68d74..c3ee77f0c 100644 --- a/server/tests/api/multiple-pods.js +++ b/server/tests/api/multiple-pods.js @@ -22,7 +22,7 @@ describe('Test multiple pods', function () { const toRemove = [] before(function (done) { - this.timeout(30000) + this.timeout(120000) series([ // Run servers @@ -153,7 +153,7 @@ describe('Test multiple pods', function () { }) it('Should upload the video on pod 2 and propagate on each pod', function (done) { - this.timeout(30000) + this.timeout(60000) series([ function (next) { @@ -170,7 +170,8 @@ describe('Test multiple pods', function () { videosUtils.uploadVideo(servers[1].url, servers[1].accessToken, videoAttributes, next) }, function (next) { - setTimeout(next, 22000) + // Transcoding, so wait more that 22 seconds + setTimeout(next, 42000) }], // All pods should have this video function (err) { @@ -229,7 +230,7 @@ describe('Test multiple pods', function () { }) it('Should upload two videos on pod 3 and propagate on each pod', function (done) { - this.timeout(30000) + this.timeout(45000) series([ function (next) { @@ -259,7 +260,7 @@ describe('Test multiple pods', function () { videosUtils.uploadVideo(servers[2].url, servers[2].accessToken, videoAttributes, next) }, function (next) { - setTimeout(next, 22000) + setTimeout(next, 33000) }], function (err) { if (err) throw err