aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/singlePod.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/server/tests/api/singlePod.js b/server/tests/api/singlePod.js
index 573eaa3a8..bdaaee46c 100644
--- a/server/tests/api/singlePod.js
+++ b/server/tests/api/singlePod.js
@@ -99,8 +99,7 @@ describe('Test a single pod', function () {
99 expect(torrent.files.length).to.equal(1) 99 expect(torrent.files.length).to.equal(1)
100 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 100 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
101 101
102 // We remove it because we'll add it again 102 done()
103 webtorrent.remove(video.magnetUri, done)
104 }) 103 })
105 }) 104 })
106 }) 105 })
@@ -127,13 +126,7 @@ describe('Test a single pod', function () {
127 if (err) throw err 126 if (err) throw err
128 expect(test).to.equal(true) 127 expect(test).to.equal(true)
129 128
130 webtorrent.add(video.magnetUri, function (torrent) { 129 done()
131 expect(torrent.files).to.exist
132 expect(torrent.files.length).to.equal(1)
133 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
134
135 done()
136 })
137 }) 130 })
138 }) 131 })
139 }) 132 })