diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-13 16:03:03 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | 0b16f5f2202e0c0832b5e678fadd95c64b8e8789 (patch) | |
tree | be67b2c32fb4ba3e3ab31ce1ef6793e66af1a89f /server/tests/api/redundancy/redundancy.ts | |
parent | e2f01c47e08d26a30ad47068d195b3d21d0df8a1 (diff) | |
download | PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.tar.gz PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.tar.zst PeerTube-0b16f5f2202e0c0832b5e678fadd95c64b8e8789.zip |
Add videos playlist exist tests
Diffstat (limited to 'server/tests/api/redundancy/redundancy.ts')
-rw-r--r-- | server/tests/api/redundancy/redundancy.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts index fc5ffbad7..33921763d 100644 --- a/server/tests/api/redundancy/redundancy.ts +++ b/server/tests/api/redundancy/redundancy.ts | |||
@@ -184,7 +184,7 @@ async function check1PlaylistRedundancies (videoUUID?: string) { | |||
184 | expect(redundancy.baseUrl).to.equal(servers[0].url + '/static/redundancy/hls/' + videoUUID) | 184 | expect(redundancy.baseUrl).to.equal(servers[0].url + '/static/redundancy/hls/' + videoUUID) |
185 | } | 185 | } |
186 | 186 | ||
187 | const baseUrlPlaylist = servers[1].url + '/static/playlists/hls' | 187 | const baseUrlPlaylist = servers[1].url + '/static/streaming-playlists/hls' |
188 | const baseUrlSegment = servers[0].url + '/static/redundancy/hls' | 188 | const baseUrlSegment = servers[0].url + '/static/redundancy/hls' |
189 | 189 | ||
190 | const res = await getVideo(servers[0].url, videoUUID) | 190 | const res = await getVideo(servers[0].url, videoUUID) |
@@ -194,7 +194,7 @@ async function check1PlaylistRedundancies (videoUUID?: string) { | |||
194 | await checkSegmentHash(baseUrlPlaylist, baseUrlSegment, videoUUID, resolution, hlsPlaylist) | 194 | await checkSegmentHash(baseUrlPlaylist, baseUrlSegment, videoUUID, resolution, hlsPlaylist) |
195 | } | 195 | } |
196 | 196 | ||
197 | for (const directory of [ 'test1/redundancy/hls', 'test2/playlists/hls' ]) { | 197 | for (const directory of [ 'test1/redundancy/hls', 'test2/streaming-playlists/hls' ]) { |
198 | const files = await readdir(join(root(), directory, videoUUID)) | 198 | const files = await readdir(join(root(), directory, videoUUID)) |
199 | expect(files).to.have.length.at.least(4) | 199 | expect(files).to.have.length.at.least(4) |
200 | 200 | ||