]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Server: fix tests
authorChocobozzz <florian.bigard@gmail.com>
Wed, 21 Sep 2016 20:52:25 +0000 (22:52 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 21 Sep 2016 20:52:25 +0000 (22:52 +0200)
server/tests/api/friends-basic.js

index 2f2f25e255b467b8165f6c5e9395ad41e9339985..c91dcb0ce0280db1b2103107f6230fda1c90023d 100644 (file)
@@ -125,7 +125,7 @@ describe('Test basic friends', function () {
       },
       // Wait for the request between pods
       function (next) {
-        setTimeout(next, 1000)
+        setTimeout(next, 11000)
       }
     ],
     // Now each pod should be friend with the other ones
@@ -181,9 +181,11 @@ describe('Test basic friends', function () {
   it('Should allow pod 2 to make friend again', function (done) {
     const server = servers[1]
     podsUtils.makeFriends(server.url, server.accessToken, function () {
-      each(servers, function (server, callback) {
-        testMadeFriends(servers, server, callback)
-      }, done)
+      setTimeout(function () {
+        each(servers, function (server, callback) {
+          testMadeFriends(servers, server, callback)
+        }, done)
+      }, 11000)
     })
   })