diff options
Diffstat (limited to 'server/tests/utils/videos')
-rw-r--r-- | server/tests/utils/videos/videos.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
200 | .get(imagePath) | 200 | .get(imagePath) |
201 | .expect(200) | 201 | .expect(200) |
202 | 202 | ||
203 | const data = await readFilePromise(join(__dirname, '..', 'api', 'fixtures', imageName + '.jpg')) | 203 | const data = await readFilePromise(join(__dirname, '..', '..', 'api', 'fixtures', imageName + '.jpg')) |
204 | 204 | ||
205 | return data.equals(res.body) | 205 | return data.equals(res.body) |
206 | } else { | 206 | } else { |
@@ -257,7 +257,7 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg | |||
257 | if (isAbsolute(attributes.fixture)) { | 257 | if (isAbsolute(attributes.fixture)) { |
258 | filePath = attributes.fixture | 258 | filePath = attributes.fixture |
259 | } else { | 259 | } else { |
260 | filePath = join(__dirname, '..', 'api', 'fixtures', attributes.fixture) | 260 | filePath = join(__dirname, '..', '..', 'api', 'fixtures', attributes.fixture) |
261 | } | 261 | } |
262 | 262 | ||
263 | return req.attach('videofile', filePath) | 263 | return req.attach('videofile', filePath) |
@@ -299,7 +299,7 @@ function rateVideo (url: string, accessToken: string, id: number, rating: string | |||
299 | function parseTorrentVideo (server: ServerInfo, videoUUID: string, resolution: number) { | 299 | function parseTorrentVideo (server: ServerInfo, videoUUID: string, resolution: number) { |
300 | return new Promise<any>((res, rej) => { | 300 | return new Promise<any>((res, rej) => { |
301 | const torrentName = videoUUID + '-' + resolution + '.torrent' | 301 | const torrentName = videoUUID + '-' + resolution + '.torrent' |
302 | const torrentPath = join(__dirname, '..', '..', '..', 'test' + server.serverNumber, 'torrents', torrentName) | 302 | const torrentPath = join(__dirname, '..', '..', '..', '..', 'test' + server.serverNumber, 'torrents', torrentName) |
303 | readFile(torrentPath, (err, data) => { | 303 | readFile(torrentPath, (err, data) => { |
304 | if (err) return rej(err) | 304 | if (err) return rej(err) |
305 | 305 | ||