From: Chocobozzz Date: Wed, 21 Sep 2016 21:05:31 +0000 (+0200) Subject: Server: fix unit tests again X-Git-Tag: v0.0.1-alpha~733 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ccc64aa6790961d2af3524a78ff8506cbdbefb13;p=oweals%2Fpeertube.git Server: fix unit tests again --- diff --git a/server/tests/api/friends-basic.js b/server/tests/api/friends-basic.js index c91dcb0ce..f1393b5ec 100644 --- a/server/tests/api/friends-basic.js +++ b/server/tests/api/friends-basic.js @@ -74,7 +74,7 @@ describe('Test basic friends', function () { }) it('Should make friends', function (done) { - this.timeout(10000) + this.timeout(40000) series([ // The second pod make friend with the third @@ -83,7 +83,7 @@ describe('Test basic friends', function () { }, // Wait for the request between pods function (next) { - setTimeout(next, 1000) + setTimeout(next, 11000) }, // The second pod should have the third as a friend function (next) { @@ -179,6 +179,8 @@ describe('Test basic friends', function () { }) it('Should allow pod 2 to make friend again', function (done) { + this.timeout(20000) + const server = servers[1] podsUtils.makeFriends(server.url, server.accessToken, function () { setTimeout(function () {