aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/api/friendsAdvanced.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/friendsAdvanced.js')
-rw-r--r--test/api/friendsAdvanced.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/api/friendsAdvanced.js b/test/api/friendsAdvanced.js
index 1103d3a97..a638eb0d4 100644
--- a/test/api/friendsAdvanced.js
+++ b/test/api/friendsAdvanced.js
@@ -50,7 +50,7 @@
50 }) 50 })
51 51
52 it('Should make friends with two pod each in a different group', function (done) { 52 it('Should make friends with two pod each in a different group', function (done) {
53 this.timeout(10000) 53 this.timeout(20000)
54 54
55 // Pod 3 makes friend with the first one 55 // Pod 3 makes friend with the first one
56 makeFriend(3, function () { 56 makeFriend(3, function () {
@@ -58,14 +58,16 @@
58 makeFriend(4, function () { 58 makeFriend(4, function () {
59 // Now if the fifth wants to make friends with the third et the first 59 // Now if the fifth wants to make friends with the third et the first
60 makeFriend(5, function () { 60 makeFriend(5, function () {
61 // It should have 0 friends 61 setTimeout(function () {
62 getFriendsList(5, function (err, res) { 62 // It should have 0 friends
63 if (err) throw err 63 getFriendsList(5, function (err, res) {
64 if (err) throw err
64 65
65 expect(res.body.length).to.equal(0) 66 expect(res.body.length).to.equal(0)
66 67
67 done() 68 done()
68 }) 69 })
70 }, 11000)
69 }) 71 })
70 }) 72 })
71 }) 73 })