mirror of https://github.com/Chocobozzz/PeerTube
Server: fix travis tests
parent
dfe3ec6bf6
commit
ede4db9e5e
|
@ -99,8 +99,7 @@ describe('Test a single pod', function () {
|
||||||
expect(torrent.files.length).to.equal(1)
|
expect(torrent.files.length).to.equal(1)
|
||||||
expect(torrent.files[0].path).to.exist.and.to.not.equal('')
|
expect(torrent.files[0].path).to.exist.and.to.not.equal('')
|
||||||
|
|
||||||
// We remove it because we'll add it again
|
done()
|
||||||
webtorrent.remove(video.magnetUri, done)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -127,16 +126,10 @@ describe('Test a single pod', function () {
|
||||||
if (err) throw err
|
if (err) throw err
|
||||||
expect(test).to.equal(true)
|
expect(test).to.equal(true)
|
||||||
|
|
||||||
webtorrent.add(video.magnetUri, function (torrent) {
|
|
||||||
expect(torrent.files).to.exist
|
|
||||||
expect(torrent.files.length).to.equal(1)
|
|
||||||
expect(torrent.files[0].path).to.exist.and.to.not.equal('')
|
|
||||||
|
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
|
||||||
|
|
||||||
it('Should search the video by name by default', function (done) {
|
it('Should search the video by name by default', function (done) {
|
||||||
videosUtils.searchVideo(server.url, 'my', function (err, res) {
|
videosUtils.searchVideo(server.url, 'my', function (err, res) {
|
||||||
|
|
Loading…
Reference in New Issue