Fix live tests

pull/3326/head
Chocobozzz 2020-11-17 16:14:11 +01:00
parent de29e90c37
commit 3e8584b99a
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)