aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/multiplePods.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/multiplePods.js')
-rw-r--r--server/tests/api/multiplePods.js26
1 files changed, 23 insertions, 3 deletions
diff --git a/server/tests/api/multiplePods.js b/server/tests/api/multiplePods.js
index 4a4532a0f..c19f120ef 100644
--- a/server/tests/api/multiplePods.js
+++ b/server/tests/api/multiplePods.js
@@ -110,7 +110,12 @@ describe('Test multiple pods', function () {
110 expect(video.magnetUri).to.equal.magnetUri 110 expect(video.magnetUri).to.equal.magnetUri
111 } 111 }
112 112
113 callback() 113 utils.testImage(server.url, 'video_short1.webm', video.thumbnail_path, function (err, test) {
114 if (err) throw err
115 expect(test).to.equal(true)
116
117 callback()
118 })
114 }) 119 })
115 }, done) 120 }, done)
116 } 121 }
@@ -160,7 +165,12 @@ describe('Test multiple pods', function () {
160 expect(video.magnetUri).to.equal.magnetUri 165 expect(video.magnetUri).to.equal.magnetUri
161 } 166 }
162 167
163 callback() 168 utils.testImage(server.url, 'video_short2.webm', video.thumbnail_path, function (err, test) {
169 if (err) throw err
170 expect(test).to.equal(true)
171
172 callback()
173 })
164 }) 174 })
165 }, done) 175 }, done)
166 } 176 }
@@ -231,7 +241,17 @@ describe('Test multiple pods', function () {
231 expect(video2.magnetUri).to.equal.magnetUri 241 expect(video2.magnetUri).to.equal.magnetUri
232 } 242 }
233 243
234 callback() 244 utils.testImage(server.url, 'video_short3.webm', video1.thumbnail_path, function (err, test) {
245 if (err) throw err
246 expect(test).to.equal(true)
247
248 utils.testImage(server.url, 'video_short.webm', video2.thumbnail_path, function (err, test) {
249 if (err) throw err
250 expect(test).to.equal(true)
251
252 callback()
253 })
254 })
235 }) 255 })
236 }, done) 256 }, done)
237 } 257 }