From 331128ed3512aa2c1b632e25ac7ac0174bdb3789 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 28 Dec 2017 14:49:43 +0100 Subject: Improve check services parameters tests --- server/tests/utils/videos/videos.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/utils/videos') diff --git a/server/tests/utils/videos/videos.ts b/server/tests/utils/videos/videos.ts index f64ebd2b0..fefee4878 100644 --- a/server/tests/utils/videos/videos.ts +++ b/server/tests/utils/videos/videos.ts @@ -200,7 +200,7 @@ async function testVideoImage (url: string, imageName: string, imagePath: string .get(imagePath) .expect(200) - const data = await readFilePromise(join(__dirname, '..', 'api', 'fixtures', imageName + '.jpg')) + const data = await readFilePromise(join(__dirname, '..', '..', 'api', 'fixtures', imageName + '.jpg')) return data.equals(res.body) } else { @@ -257,7 +257,7 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg if (isAbsolute(attributes.fixture)) { filePath = attributes.fixture } else { - filePath = join(__dirname, '..', 'api', 'fixtures', attributes.fixture) + filePath = join(__dirname, '..', '..', 'api', 'fixtures', attributes.fixture) } return req.attach('videofile', filePath) @@ -299,7 +299,7 @@ function rateVideo (url: string, accessToken: string, id: number, rating: string function parseTorrentVideo (server: ServerInfo, videoUUID: string, resolution: number) { return new Promise((res, rej) => { const torrentName = videoUUID + '-' + resolution + '.torrent' - const torrentPath = join(__dirname, '..', '..', '..', 'test' + server.serverNumber, 'torrents', torrentName) + const torrentPath = join(__dirname, '..', '..', '..', '..', 'test' + server.serverNumber, 'torrents', torrentName) readFile(torrentPath, (err, data) => { if (err) return rej(err) -- cgit v1.2.3