aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/videos.js')
-rw-r--r--server/tests/utils/videos.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/utils/videos.js b/server/tests/utils/videos.js
index 6e7aabc5d..cb3be6897 100644
--- a/server/tests/utils/videos.js
+++ b/server/tests/utils/videos.js
@@ -195,7 +195,7 @@ function searchVideoWithSort (url, search, sort, end) {
195 .end(end) 195 .end(end)
196} 196}
197 197
198function testVideoImage (url, videoName, imagePath, callback) { 198function testVideoImage (url, imageName, imagePath, callback) {
199 // Don't test images if the node env is not set 199 // Don't test images if the node env is not set
200 // Because we need a special ffmpeg version for this test 200 // Because we need a special ffmpeg version for this test
201 if (process.env.NODE_TEST_IMAGE) { 201 if (process.env.NODE_TEST_IMAGE) {
@@ -205,7 +205,7 @@ function testVideoImage (url, videoName, imagePath, callback) {
205 .end(function (err, res) { 205 .end(function (err, res) {
206 if (err) return callback(err) 206 if (err) return callback(err)
207 207
208 fs.readFile(pathUtils.join(__dirname, '..', 'api', 'fixtures', videoName + '.jpg'), function (err, data) { 208 fs.readFile(pathUtils.join(__dirname, '..', 'api', 'fixtures', imageName + '.jpg'), function (err, data) {
209 if (err) return callback(err) 209 if (err) return callback(err)
210 210
211 callback(null, data.equals(res.body)) 211 callback(null, data.equals(res.body))