aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/single-pod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-07 11:08:55 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-07 13:59:06 +0200
commitbf94b6f0a1ac2cd5304f5cc7f85434120489cab8 (patch)
tree5cdf45935c8e574c3232b095b43ae17189603164 /server/tests/api/single-pod.js
parent82e624233f22eba0230383c7de8a9ed3b69791a6 (diff)
downloadPeerTube-bf94b6f0a1ac2cd5304f5cc7f85434120489cab8.tar.gz
PeerTube-bf94b6f0a1ac2cd5304f5cc7f85434120489cab8.tar.zst
PeerTube-bf94b6f0a1ac2cd5304f5cc7f85434120489cab8.zip
Server: update to webseed implementation (tests, lint...)
Diffstat (limited to 'server/tests/api/single-pod.js')
-rw-r--r--server/tests/api/single-pod.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js
index bdaaee46c..623a1a6a3 100644
--- a/server/tests/api/single-pod.js
+++ b/server/tests/api/single-pod.js
@@ -7,13 +7,12 @@ const fs = require('fs')
7const keyBy = require('lodash/keyBy') 7const keyBy = require('lodash/keyBy')
8const pathUtils = require('path') 8const pathUtils = require('path')
9const series = require('async/series') 9const series = require('async/series')
10const webtorrent = new (require('webtorrent'))()
10 11
11const loginUtils = require('../utils/login') 12const loginUtils = require('../utils/login')
12const miscsUtils = require('../utils/miscs') 13const miscsUtils = require('../utils/miscs')
13const serversUtils = require('../utils/servers') 14const serversUtils = require('../utils/servers')
14const videosUtils = require('../utils/videos') 15const videosUtils = require('../utils/videos')
15const webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent'))
16webtorrent.silent = true
17 16
18describe('Test a single pod', function () { 17describe('Test a single pod', function () {
19 let server = null 18 let server = null
@@ -39,9 +38,6 @@ describe('Test a single pod', function () {
39 server.accessToken = token 38 server.accessToken = token
40 next() 39 next()
41 }) 40 })
42 },
43 function (next) {
44 webtorrent.create({ host: 'client', port: '1' }, next)
45 } 41 }
46 ], done) 42 ], done)
47 }) 43 })
@@ -496,7 +492,6 @@ describe('Test a single pod', function () {
496 492
497 after(function (done) { 493 after(function (done) {
498 process.kill(-server.app.pid) 494 process.kill(-server.app.pid)
499 process.kill(-webtorrent.app.pid)
500 495
501 // Keep the logs if the test failed 496 // Keep the logs if the test failed
502 if (this.ok) { 497 if (this.ok) {