// ---------------------------------------------------------------
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
series([
function (next) {
// ---------------------------------------------------------------
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
series([
function (next) {
})
it('Should succeed with the correct parameters', function (done) {
- this.timeout(5000)
+ this.timeout(10000)
const data = {
name: 'my super name',
const attach = {
'videofile': pathUtils.join(__dirname, '..', 'fixtures', 'video_short.webm')
}
+
requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () {
attach.videofile = pathUtils.join(__dirname, '..', 'fixtures', 'video_short.mp4')
requestsUtils.makePostUploadRequest(server.url, path, server.accessToken, data, attach, function () {
let server = null
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
series([
function (next) {
// ---------------------------------------------------------------
before(function (done) {
- this.timeout(30000)
+ this.timeout(120000)
serversUtils.flushAndRunMultipleServers(6, function (serversRun, urlsRun) {
servers = serversRun
// ---------------------------------------------------------------
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
serversUtils.flushAndRunMultipleServers(3, function (serversRun, urlsRun) {
servers = serversRun
})
it('Should make friends', function (done) {
- this.timeout(40000)
+ this.timeout(120000)
series([
// The second pod make friend with the third
})
it('Should not be allowed to make friend again', function (done) {
+ this.timeout(10000)
const server = servers[1]
podsUtils.makeFriends(server.url, server.accessToken, 409, done)
})
it('Should quit friends of pod 2', function (done) {
+ this.timeout(10000)
+
series([
// Pod 1 quit friends
function (next) {
})
it('Should allow pod 2 to make friend again', function (done) {
- this.timeout(20000)
+ this.timeout(120000)
const server = servers[1]
podsUtils.makeFriends(server.url, server.accessToken, function () {
const toRemove = []
before(function (done) {
- this.timeout(30000)
+ this.timeout(120000)
series([
// Run servers
})
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
// ---------------------------------------------------------------
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
serversUtils.flushAndRunMultipleServers(2, function (serversRun, urlsRun) {
servers = serversRun
let videosListBase = null
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
series([
function (next) {
if (err) throw err
expect(test).to.equal(true)
- done()
+ // Wait the async views increment
+ setTimeout(done, 500)
})
})
})
let userId = null
before(function (done) {
- this.timeout(20000)
+ this.timeout(120000)
series([
function (next) {
let servers = []
before(function (done) {
- this.timeout(40000)
+ this.timeout(100000)
series([
// Run servers
let servers = []
before(function (done) {
- this.timeout(40000)
+ this.timeout(120000)
series([
// Run servers