mirror of https://github.com/Chocobozzz/PeerTube
Fix live tests
parent
de29e90c37
commit
3e8584b99a
|
@ -324,7 +324,7 @@ describe('Test live', function () {
|
||||||
|
|
||||||
for (let i = 0; i < resolutions.length; i++) {
|
for (let i = 0; i < resolutions.length; i++) {
|
||||||
const segmentName = `${i}-000001.ts`
|
const segmentName = `${i}-000001.ts`
|
||||||
await waitUntilLog(servers[0], `${video.uuid}/${segmentName}`, 1, false)
|
await waitUntilLog(servers[0], `${video.uuid}/${segmentName}`, 2, false)
|
||||||
|
|
||||||
const res = await getPlaylist(`${servers[0].url}/static/streaming-playlists/hls/${video.uuid}/${i}.m3u8`)
|
const res = await getPlaylist(`${servers[0].url}/static/streaming-playlists/hls/${video.uuid}/${i}.m3u8`)
|
||||||
const subPlaylist = res.text
|
const subPlaylist = res.text
|
||||||
|
|
|
@ -108,7 +108,7 @@ async function flushAndRunServer (serverNumber: number, configOverride?: Object,
|
||||||
const parallel = parallelTests()
|
const parallel = parallelTests()
|
||||||
|
|
||||||
const internalServerNumber = parallel ? randomServer() : serverNumber
|
const internalServerNumber = parallel ? randomServer() : serverNumber
|
||||||
const rtmpPort = parallel ? randomRTMP() : null
|
const rtmpPort = parallel ? randomRTMP() : 1936
|
||||||
const port = 9000 + internalServerNumber
|
const port = 9000 + internalServerNumber
|
||||||
|
|
||||||
await flushTests(internalServerNumber)
|
await flushTests(internalServerNumber)
|
||||||
|
|
Loading…
Reference in New Issue