diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/api/videos/audio-only.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'server/tests/api/videos/audio-only.ts')
-rw-r--r-- | server/tests/api/videos/audio-only.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/videos/audio-only.ts index e31905b36..b2952e38b 100644 --- a/server/tests/api/videos/audio-only.ts +++ b/server/tests/api/videos/audio-only.ts | |||
@@ -48,13 +48,13 @@ describe('Test audio only video transcoding', function () { | |||
48 | it('Should upload a video and transcode it', async function () { | 48 | it('Should upload a video and transcode it', async function () { |
49 | this.timeout(120000) | 49 | this.timeout(120000) |
50 | 50 | ||
51 | const { uuid } = await servers[0].videosCommand.upload({ attributes: { name: 'audio only' } }) | 51 | const { uuid } = await servers[0].videos.upload({ attributes: { name: 'audio only' } }) |
52 | videoUUID = uuid | 52 | videoUUID = uuid |
53 | 53 | ||
54 | await waitJobs(servers) | 54 | await waitJobs(servers) |
55 | 55 | ||
56 | for (const server of servers) { | 56 | for (const server of servers) { |
57 | const video = await server.videosCommand.get({ id: videoUUID }) | 57 | const video = await server.videos.get({ id: videoUUID }) |
58 | expect(video.streamingPlaylists).to.have.lengthOf(1) | 58 | expect(video.streamingPlaylists).to.have.lengthOf(1) |
59 | 59 | ||
60 | for (const files of [ video.files, video.streamingPlaylists[0].files ]) { | 60 | for (const files of [ video.files, video.streamingPlaylists[0].files ]) { |
@@ -68,8 +68,8 @@ describe('Test audio only video transcoding', function () { | |||
68 | 68 | ||
69 | it('0p transcoded video should not have video', async function () { | 69 | it('0p transcoded video should not have video', async function () { |
70 | const paths = [ | 70 | const paths = [ |
71 | servers[0].serversCommand.buildDirectory(join('videos', videoUUID + '-0.mp4')), | 71 | servers[0].servers.buildDirectory(join('videos', videoUUID + '-0.mp4')), |
72 | servers[0].serversCommand.buildDirectory(join('streaming-playlists', 'hls', videoUUID, videoUUID + '-0-fragmented.mp4')) | 72 | servers[0].servers.buildDirectory(join('streaming-playlists', 'hls', videoUUID, videoUUID + '-0-fragmented.mp4')) |
73 | ] | 73 | ] |
74 | 74 | ||
75 | for (const path of paths) { | 75 | for (const path of paths) { |