aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-07-12 11:56:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-07-12 11:56:02 +0200
commitf981dae8617271a2dc713bb683951730b306e0c5 (patch)
treeecee631766bc1b98c20a7836479fed40850c5a56 /server/tests/utils/videos.js
parent075f16caac5236cb04c98ae7b3a989766d764bb3 (diff)
downloadPeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.gz
PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.tar.zst
PeerTube-f981dae8617271a2dc713bb683951730b306e0c5.zip
Add previews cache system between pods
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))