diff options
Diffstat (limited to 'server/tests/utils/videos.ts')
-rw-r--r-- | server/tests/utils/videos.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/utils/videos.ts b/server/tests/utils/videos.ts index 0de506cd9..7f8bd39c0 100644 --- a/server/tests/utils/videos.ts +++ b/server/tests/utils/videos.ts | |||
@@ -238,9 +238,10 @@ function rateVideo (url: string, accessToken: string, id: number, rating: string | |||
238 | .expect(specialStatus) | 238 | .expect(specialStatus) |
239 | } | 239 | } |
240 | 240 | ||
241 | function parseTorrentVideo (server: ServerInfo, videoUUID: string) { | 241 | function parseTorrentVideo (server: ServerInfo, videoUUID: string, resolutionLabel: string) { |
242 | return new Promise<any>((res, rej) => { | 242 | return new Promise<any>((res, rej) => { |
243 | const torrentPath = join(__dirname, '..', '..', '..', 'test' + server.serverNumber, 'torrents', videoUUID + '.torrent') | 243 | const torrentName = videoUUID + '-' + resolutionLabel + '.torrent' |
244 | const torrentPath = join(__dirname, '..', '..', '..', 'test' + server.serverNumber, 'torrents', torrentName) | ||
244 | readFile(torrentPath, (err, data) => { | 245 | readFile(torrentPath, (err, data) => { |
245 | if (err) return rej(err) | 246 | if (err) return rej(err) |
246 | 247 | ||