From 0484ec9e41acd61d87b6fe132f3530b6e3963e11 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 30 Nov 2020 09:16:41 +0100 Subject: Try to fix live tests --- .github/workflows/test.yml | 5 +++++ server/tests/api/live/live.ts | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7db871149..c188c2074 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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() diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts index 843943bba..d0586499b 100644 --- a/server/tests/api/live/live.ts +++ b/server/tests/api/live/live.ts @@ -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) -- cgit v1.2.3