aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-09-21 22:52:25 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-09-21 22:52:25 +0200
commit0fb99fb4fd691771e9bf34f82f2d05f17965f99b (patch)
treec1f29a7dc43986496e4d5ce14657ae25539f74fc /server/tests/api
parent732bd032409c7ccee44654b26ea1394478c63212 (diff)
downloadPeerTube-0fb99fb4fd691771e9bf34f82f2d05f17965f99b.tar.gz
PeerTube-0fb99fb4fd691771e9bf34f82f2d05f17965f99b.tar.zst
PeerTube-0fb99fb4fd691771e9bf34f82f2d05f17965f99b.zip
Server: fix tests
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/friends-basic.js10
1 files 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 () {
125 }, 125 },
126 // Wait for the request between pods 126 // Wait for the request between pods
127 function (next) { 127 function (next) {
128 setTimeout(next, 1000) 128 setTimeout(next, 11000)
129 } 129 }
130 ], 130 ],
131 // Now each pod should be friend with the other ones 131 // Now each pod should be friend with the other ones
@@ -181,9 +181,11 @@ describe('Test basic friends', function () {
181 it('Should allow pod 2 to make friend again', function (done) { 181 it('Should allow pod 2 to make friend again', function (done) {
182 const server = servers[1] 182 const server = servers[1]
183 podsUtils.makeFriends(server.url, server.accessToken, function () { 183 podsUtils.makeFriends(server.url, server.accessToken, function () {
184 each(servers, function (server, callback) { 184 setTimeout(function () {
185 testMadeFriends(servers, server, callback) 185 each(servers, function (server, callback) {
186 }, done) 186 testMadeFriends(servers, server, callback)
187 }, done)
188 }, 11000)
187 }) 189 })
188 }) 190 })
189 191