aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/api/friendsAdvanced.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-01-09 14:46:16 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-01-09 14:46:16 +0100
commit2cc8ebf134b66047cd639ee7324e1ecfd5c5fd18 (patch)
tree3dbc4c7c1e1c68033834f96a857b82cb46eb8f62 /test/api/friendsAdvanced.js
parent529594d2f014356956fdc0a033c38d1cd581c3ae (diff)
downloadPeerTube-2cc8ebf134b66047cd639ee7324e1ecfd5c5fd18.tar.gz
PeerTube-2cc8ebf134b66047cd639ee7324e1ecfd5c5fd18.tar.zst
PeerTube-2cc8ebf134b66047cd639ee7324e1ecfd5c5fd18.zip
Fix tests
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 })