From 0fb99fb4fd691771e9bf34f82f2d05f17965f99b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Sep 2016 22:52:25 +0200 Subject: [PATCH] Server: fix tests --- server/tests/api/friends-basic.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/tests/api/friends-basic.js b/server/tests/api/friends-basic.js index 2f2f25e25..c91dcb0ce 100644 --- a/server/tests/api/friends-basic.js +++ b/server/tests/api/friends-basic.js @@ -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) }) }) -- 2.25.1