aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiplePods.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-13 16:31:14 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-13 16:31:14 +0200
commitb3b926474204ad736ec434aafc8afc6bc55079f6 (patch)
treeba235886357a8c032fea7ef17cd9ab9519ea6a2b /server/tests/api/multiplePods.js
parent5dda52c924763a889e98b4cf97c588b34ef01812 (diff)
downloadPeerTube-b3b926474204ad736ec434aafc8afc6bc55079f6.tar.gz
PeerTube-b3b926474204ad736ec434aafc8afc6bc55079f6.tar.zst
PeerTube-b3b926474204ad736ec434aafc8afc6bc55079f6.zip
Authenticate before make/quit friends (server + tests)
Diffstat (limited to 'server/tests/api/multiplePods.js')
-rw-r--r--server/tests/api/multiplePods.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/api/multiplePods.js b/server/tests/api/multiplePods.js
index 1a61034fc..486457347 100644
--- a/server/tests/api/multiplePods.js
+++ b/server/tests/api/multiplePods.js
@@ -37,7 +37,8 @@ describe('Test multiple pods', function () {
37 }, 37 },
38 // The second pod make friend with the third 38 // The second pod make friend with the third
39 function (next) { 39 function (next) {
40 utils.makeFriends(servers[1].url, next) 40 const server = servers[1]
41 utils.makeFriends(server.url, server.accessToken, next)
41 }, 42 },
42 // Wait for the request between pods 43 // Wait for the request between pods
43 function (next) { 44 function (next) {
@@ -45,7 +46,8 @@ describe('Test multiple pods', function () {
45 }, 46 },
46 // Pod 1 make friends too 47 // Pod 1 make friends too
47 function (next) { 48 function (next) {
48 utils.makeFriends(servers[0].url, next) 49 const server = servers[0]
50 utils.makeFriends(server.url, server.accessToken, next)
49 }, 51 },
50 function (next) { 52 function (next) {
51 webtorrent.create({ host: 'client', port: '1' }, next) 53 webtorrent.create({ host: 'client', port: '1' }, next)