]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - test/api/friendsAdvanced.js
Fix tests
[github/Chocobozzz/PeerTube.git] / test / api / friendsAdvanced.js
index 1103d3a970b84f45ea5ab4c37a60d3ec874edb71..a638eb0d4384e5e64d0f2f550374cbc89fe6982a 100644 (file)
@@ -50,7 +50,7 @@
     })
 
     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
       makeFriend(3, function () {
         makeFriend(4, function () {
           // Now if the fifth wants to make friends with the third et the first
           makeFriend(5, function () {
-            // It should have 0 friends
-            getFriendsList(5, function (err, res) {
-              if (err) throw err
+            setTimeout(function () {
+              // It should have 0 friends
+              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)
           })
         })
       })