diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-30 09:16:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-30 09:16:41 +0100 |
commit | 0484ec9e41acd61d87b6fe132f3530b6e3963e11 (patch) | |
tree | 45be247de0c9c20dd8aeee4546d230aecc47876b /server/tests/api/live | |
parent | 6b88559babc1e0490119a6b52411b10910d9da9d (diff) | |
download | PeerTube-0484ec9e41acd61d87b6fe132f3530b6e3963e11.tar.gz PeerTube-0484ec9e41acd61d87b6fe132f3530b6e3963e11.tar.zst PeerTube-0484ec9e41acd61d87b6fe132f3530b6e3963e11.zip |
Try to fix live tests
Diffstat (limited to 'server/tests/api/live')
-rw-r--r-- | server/tests/api/live/live.ts | 11 |
1 files changed, 9 insertions, 2 deletions
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 () { | |||
579 | } | 579 | } |
580 | 580 | ||
581 | const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, liveVideoUUID) | 581 | const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, liveVideoUUID) |
582 | await waitUntilLiveStarts(servers[0].url, servers[0].accessToken, liveVideoUUID) | 582 | |
583 | for (const server of servers) { | ||
584 | await waitUntilLiveStarts(server.url, server.accessToken, liveVideoUUID) | ||
585 | } | ||
586 | |||
583 | await waitJobs(servers) | 587 | await waitJobs(servers) |
584 | 588 | ||
585 | for (const stateChanges of [ localStateChanges, remoteStateChanges ]) { | 589 | for (const stateChanges of [ localStateChanges, remoteStateChanges ]) { |
@@ -588,7 +592,10 @@ describe('Test live', function () { | |||
588 | } | 592 | } |
589 | 593 | ||
590 | await stopFfmpeg(command) | 594 | await stopFfmpeg(command) |
591 | await waitUntilLiveEnded(servers[0].url, servers[0].accessToken, liveVideoUUID) | 595 | |
596 | for (const server of servers) { | ||
597 | await waitUntilLiveEnded(server.url, server.accessToken, liveVideoUUID) | ||
598 | } | ||
592 | 599 | ||
593 | await waitJobs(servers) | 600 | await waitJobs(servers) |
594 | 601 | ||