aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/single-pod.js4
-rw-r--r--server/tests/utils/servers.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js
index 2db60448f..83a2b4411 100644
--- a/server/tests/api/single-pod.js
+++ b/server/tests/api/single-pod.js
@@ -251,12 +251,12 @@ describe('Test a single pod', function () {
251 videosUtils.removeVideo(server.url, server.accessToken, videoId, function (err) { 251 videosUtils.removeVideo(server.url, server.accessToken, videoId, function (err) {
252 if (err) throw err 252 if (err) throw err
253 253
254 fs.readdir(pathUtils.join(__dirname, '../../../test1/videos/'), function (err, files) { 254 fs.readdir(pathUtils.join(__dirname, '..', '..', '..', 'test1/videos/'), function (err, files) {
255 if (err) throw err 255 if (err) throw err
256 256
257 expect(files.length).to.equal(0) 257 expect(files.length).to.equal(0)
258 258
259 fs.readdir(pathUtils.join(__dirname, '../../../test1/thumbnails/'), function (err, files) { 259 fs.readdir(pathUtils.join(__dirname, '..', '..', '..', 'test1/thumbnails/'), function (err, files) {
260 if (err) throw err 260 if (err) throw err
261 261
262 expect(files.length).to.equal(0) 262 expect(files.length).to.equal(0)
diff --git a/server/tests/utils/servers.js b/server/tests/utils/servers.js
index 1946ef49a..c07db4c40 100644
--- a/server/tests/utils/servers.js
+++ b/server/tests/utils/servers.js
@@ -81,7 +81,7 @@ function runServer (number, callback) {
81 detached: true 81 detached: true
82 } 82 }
83 83
84 server.app = fork(pathUtils.join(__dirname, '../../../server.js'), [], options) 84 server.app = fork(pathUtils.join(__dirname, '..', '..', '..', 'server.js'), [], options)
85 server.app.stdout.on('data', function onStdout (data) { 85 server.app.stdout.on('data', function onStdout (data) {
86 let dontContinue = false 86 let dontContinue = false
87 87