X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Faudio-only.ts;h=294a001121a40409e28b20b3fb062497473ac8db;hb=f2eb23cd87cf32b8fe545178143b5f49e06a58da;hp=053b29ca14322596d8bc3c4b9e3626650be1bdfd;hpb=daf6e4801052d3ca6be2fafd20bae2323b1ce175;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/videos/audio-only.ts index 053b29ca1..294a00112 100644 --- a/server/tests/api/videos/audio-only.ts +++ b/server/tests/api/videos/audio-only.ts @@ -5,11 +5,11 @@ import * as chai from 'chai' import { join } from 'path' import { getAudioStream, getVideoStreamSize } from '@server/helpers/ffprobe-utils' import { + buildServerDirectory, cleanupTests, doubleFollow, flushAndRunMultipleServers, getVideo, - root, ServerInfo, setAccessTokensToServers, uploadVideo, @@ -80,8 +80,8 @@ describe('Test audio only video transcoding', function () { it('0p transcoded video should not have video', async function () { const paths = [ - join(root(), 'test' + servers[0].internalServerNumber, 'videos', videoUUID + '-0.mp4'), - join(root(), 'test' + servers[0].internalServerNumber, 'streaming-playlists', 'hls', videoUUID, videoUUID + '-0-fragmented.mp4') + buildServerDirectory(servers[0], join('videos', videoUUID + '-0.mp4')), + buildServerDirectory(servers[0], join('streaming-playlists', 'hls', videoUUID, videoUUID + '-0-fragmented.mp4')) ] for (const path of paths) {