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 --- server/tests/api/live/live.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'server/tests') 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