Server: fix unit tests again

This commit is contained in:
Chocobozzz 2016-09-21 23:05:31 +02:00
parent 3783627410
commit ccc64aa679
1 changed files with 4 additions and 2 deletions

View File

@ -74,7 +74,7 @@ describe('Test basic friends', function () {
}) })
it('Should make friends', function (done) { it('Should make friends', function (done) {
this.timeout(10000) this.timeout(40000)
series([ series([
// The second pod make friend with the third // The second pod make friend with the third
@ -83,7 +83,7 @@ describe('Test basic friends', function () {
}, },
// Wait for the request between pods // Wait for the request between pods
function (next) { function (next) {
setTimeout(next, 1000) setTimeout(next, 11000)
}, },
// The second pod should have the third as a friend // The second pod should have the third as a friend
function (next) { function (next) {
@ -179,6 +179,8 @@ describe('Test basic friends', function () {
}) })
it('Should allow pod 2 to make friend again', function (done) { it('Should allow pod 2 to make friend again', function (done) {
this.timeout(20000)
const server = servers[1] const server = servers[1]
podsUtils.makeFriends(server.url, server.accessToken, function () { podsUtils.makeFriends(server.url, server.accessToken, function () {
setTimeout(function () { setTimeout(function () {