diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-14 16:50:22 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-14 16:50:22 +0200 |
commit | ede4db9e5e55471510c687d5350f553158f82b68 (patch) | |
tree | 4bfc49bcef6a3e6c8f92d8fbe061fe12444b5718 | |
parent | dfe3ec6bf66dfc5e2878f1df24f6a55b66812f46 (diff) | |
download | PeerTube-ede4db9e5e55471510c687d5350f553158f82b68.tar.gz PeerTube-ede4db9e5e55471510c687d5350f553158f82b68.tar.zst PeerTube-ede4db9e5e55471510c687d5350f553158f82b68.zip |
Server: fix travis tests
-rw-r--r-- | server/tests/api/singlePod.js | 11 |
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 | }) |