mirror of https://github.com/Chocobozzz/PeerTube
Fix redundancy tests
parent
4a534352ad
commit
d82d8ad60c
|
@ -143,18 +143,19 @@ async function check2Webseeds (strategy: VideoRedundancyStrategy, videoUUID?: st
|
||||||
|
|
||||||
for (const file of video.files) {
|
for (const file of video.files) {
|
||||||
checkMagnetWebseeds(file, webseeds, server)
|
checkMagnetWebseeds(file, webseeds, server)
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const url of [ 'http://localhost:9001', 'http://localhost:9002' ]) {
|
// Only servers 1 and 2 have the video
|
||||||
|
if (server.serverNumber !== 3) {
|
||||||
await makeGetRequest({
|
await makeGetRequest({
|
||||||
url,
|
url: server.url,
|
||||||
statusCodeExpected: 200,
|
statusCodeExpected: 200,
|
||||||
path: '/static/webseed/' + videoUUID,
|
path: '/static/webseed/' + `${videoUUID}-${file.resolution.id}.mp4`,
|
||||||
contentType: null
|
contentType: null
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (const directory of [ 'test1', 'test2' ]) {
|
for (const directory of [ 'test1', 'test2' ]) {
|
||||||
const files = await readdir(join(root(), directory, 'videos'))
|
const files = await readdir(join(root(), directory, 'videos'))
|
||||||
|
|
Loading…
Reference in New Issue