Browse Source

Fix live tests

pull/3326/head
Chocobozzz 1 week ago
parent
commit
3e8584b99a
No known key found for this signature in database GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      server/tests/api/live/live.ts
  2. +1
    -1
      shared/extra-utils/server/servers.ts

+ 1
- 1
server/tests/api/live/live.ts View File

@@ -324,7 +324,7 @@ describe('Test live', function () {

for (let i = 0; i < resolutions.length; i++) {
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 subPlaylist = res.text


+ 1
- 1
shared/extra-utils/server/servers.ts View File

@@ -108,7 +108,7 @@ async function flushAndRunServer (serverNumber: number, configOverride?: Object,
const parallel = parallelTests()

const internalServerNumber = parallel ? randomServer() : serverNumber
const rtmpPort = parallel ? randomRTMP() : null
const rtmpPort = parallel ? randomRTMP() : 1936
const port = 9000 + internalServerNumber

await flushTests(internalServerNumber)


Loading…
Cancel
Save