Fix adding twice a torrent in webtorrent
authorChocobozzz <florian.bigard@gmail.com>
Fri, 13 May 2016 14:35:51 +0000 (16:35 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 13 May 2016 14:35:51 +0000 (16:35 +0200)
server/tests/api/multiplePods.js

index 486457347a19d1f91744a067f8b0552394026d7c..51e7fb3d194a0dd1e6f55f94626efa319f896d4f 100644 (file)
@@ -316,7 +316,7 @@ describe('Test multiple pods', function () {
           expect(torrent.files.length).to.equal(1)
           expect(torrent.files[0].path).to.exist.and.to.not.equal('')
 
-          done()
+          webtorrent.remove(video.magnetUri, done)
         })
       })
     })