Fix tests
This commit is contained in:
parent
529594d2f0
commit
2cc8ebf134
|
@ -50,7 +50,7 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should make friends with two pod each in a different group', function (done) {
|
it('Should make friends with two pod each in a different group', function (done) {
|
||||||
this.timeout(10000)
|
this.timeout(20000)
|
||||||
|
|
||||||
// Pod 3 makes friend with the first one
|
// Pod 3 makes friend with the first one
|
||||||
makeFriend(3, function () {
|
makeFriend(3, function () {
|
||||||
|
@ -58,14 +58,16 @@
|
||||||
makeFriend(4, function () {
|
makeFriend(4, function () {
|
||||||
// Now if the fifth wants to make friends with the third et the first
|
// Now if the fifth wants to make friends with the third et the first
|
||||||
makeFriend(5, function () {
|
makeFriend(5, function () {
|
||||||
// It should have 0 friends
|
setTimeout(function () {
|
||||||
getFriendsList(5, function (err, res) {
|
// It should have 0 friends
|
||||||
if (err) throw err
|
getFriendsList(5, function (err, res) {
|
||||||
|
if (err) throw err
|
||||||
|
|
||||||
expect(res.body.length).to.equal(0)
|
expect(res.body.length).to.equal(0)
|
||||||
|
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
|
}, 11000)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -140,7 +140,7 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should upload two videos on pod 3 and propagate on each pod', function (done) {
|
it('Should upload two videos on pod 3 and propagate on each pod', function (done) {
|
||||||
this.timeout(15000)
|
this.timeout(30000)
|
||||||
|
|
||||||
utils.uploadVideo(urls[2], 'my super name for pod 3', 'my super description for pod 3', 'video_short3.webm', function (err) {
|
utils.uploadVideo(urls[2], 'my super name for pod 3', 'my super description for pod 3', 'video_short3.webm', function (err) {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
|
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
}, 11000)
|
}, 22000)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue