diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-17 21:42:47 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-17 21:42:47 +0100 |
commit | 15103f11ec54989a0dee7fc33daa458ecb116fe4 (patch) | |
tree | b25f8ee33f32ccd61df46afc27a2a4628f9f0be5 /server/tests | |
parent | 1e4b0080ff1b4e802f71ec1f4cbf8cbcc70cdcbd (diff) | |
download | PeerTube-15103f11ec54989a0dee7fc33daa458ecb116fe4.tar.gz PeerTube-15103f11ec54989a0dee7fc33daa458ecb116fe4.tar.zst PeerTube-15103f11ec54989a0dee7fc33daa458ecb116fe4.zip |
Server: paths refractoring
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/single-pod.js | 4 | ||||
-rw-r--r-- | server/tests/utils/servers.js | 2 |
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 | ||