]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - test/api/multiplePods.js
Fix tests
[github/Chocobozzz/PeerTube.git] / test / api / multiplePods.js
index fff17900667fdf016c643529a873205c4acc1599..81d4b06b60c60fd452d746e1bb6d3c6f96ae928f 100644 (file)
@@ -61,7 +61,7 @@
                 .end(function (err, res) {
                   if (err) throw err
 
-                  webtorrent.create(function () {
+                  webtorrent.create({ host: 'client', port: '1' }, function () {
                     done()
                   })
                 })
     describe('Should seed the uploaded video', function () {
       it('Should add the file 1 by asking pod 3', function (done) {
         // Yes, this could be long
-        this.timeout(60000)
+        this.timeout(200000)
 
         getVideosList(urls[2], function (err, res) {
           if (err) throw err
 
       it('Should add the file 2 by asking pod 1', function (done) {
         // Yes, this could be long
-        this.timeout(60000)
+        this.timeout(200000)
 
         getVideosList(urls[0], function (err, res) {
           if (err) throw err
 
           var video = res.body[1]
 
-          video_id = video._id
-
           webtorrent.add(video.magnetUri, function (torrent) {
             expect(torrent.files).to.exist
             expect(torrent.files.length).to.equal(1)
 
       it('Should add the file 3 by asking pod 2', function (done) {
         // Yes, this could be long
-        this.timeout(60000)
+        this.timeout(200000)
 
         getVideosList(urls[1], function (err, res) {
           if (err) throw err
 
           var video = res.body[2]
+          video_id = res.body[1]._id
 
           webtorrent.add(video.magnetUri, function (torrent) {
             expect(torrent.files).to.exist