Try to fix live tests

pull/3447/head
Chocobozzz 2020-11-30 09:16:41 +01:00
parent 6b88559bab
commit 0484ec9e41
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 14 additions and 2 deletions

View File

@ -95,6 +95,11 @@ jobs:
if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
- name: Display directories state
if: failure()
run: |
ls -l
- name: Upload logs
uses: actions/upload-artifact@v2
if: failure()

View File

@ -579,7 +579,11 @@ describe('Test live', function () {
}
const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, liveVideoUUID)
await waitUntilLiveStarts(servers[0].url, servers[0].accessToken, liveVideoUUID)
for (const server of servers) {
await waitUntilLiveStarts(server.url, server.accessToken, liveVideoUUID)
}
await waitJobs(servers)
for (const stateChanges of [ localStateChanges, remoteStateChanges ]) {
@ -588,7 +592,10 @@ describe('Test live', function () {
}
await stopFfmpeg(command)
await waitUntilLiveEnded(servers[0].url, servers[0].accessToken, liveVideoUUID)
for (const server of servers) {
await waitUntilLiveEnded(server.url, server.accessToken, liveVideoUUID)
}
await waitJobs(servers)