const toRemove = []
before(function (done) {
- this.timeout(30000)
+ this.timeout(120000)
series([
// Run servers
})
it('Should upload the video on pod 2 and propagate on each pod', function (done) {
- this.timeout(30000)
+ this.timeout(60000)
series([
function (next) {
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) {
})
it('Should upload two videos on pod 3 and propagate on each pod', function (done) {
- this.timeout(30000)
+ this.timeout(45000)
series([
function (next) {
videosUtils.uploadVideo(servers[2].url, servers[2].accessToken, videoAttributes, next)
},
function (next) {
- setTimeout(next, 22000)
+ setTimeout(next, 33000)
}],
function (err) {
if (err) throw err