diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-11 10:36:05 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-12-14 09:11:27 +0100 |
commit | 59fd824cf3434a8417b73230f1840fed327e3495 (patch) | |
tree | b3c25022099adf2a41ed8da5328c4147d60add83 /shared | |
parent | 34caef7fc0710623c6894549423813d53f65b303 (diff) | |
download | PeerTube-59fd824cf3434a8417b73230f1840fed327e3495.tar.gz PeerTube-59fd824cf3434a8417b73230f1840fed327e3495.tar.zst PeerTube-59fd824cf3434a8417b73230f1840fed327e3495.zip |
Fix tests timeout
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/videos/live.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/live.ts b/shared/extra-utils/videos/live.ts index cbcfc09e4..98f67a9bb 100644 --- a/shared/extra-utils/videos/live.ts +++ b/shared/extra-utils/videos/live.ts | |||
@@ -119,7 +119,7 @@ async function testFfmpegStreamError (command: ffmpeg.FfmpegCommand, shouldHaveE | |||
119 | let error: Error | 119 | let error: Error |
120 | 120 | ||
121 | try { | 121 | try { |
122 | await waitFfmpegUntilError(command, 15000) | 122 | await waitFfmpegUntilError(command, 25000) |
123 | } catch (err) { | 123 | } catch (err) { |
124 | error = err | 124 | error = err |
125 | } | 125 | } |
@@ -140,6 +140,10 @@ function waitUntilLivePublished (url: string, token: string, videoId: number | s | |||
140 | return waitUntilLiveState(url, token, videoId, VideoState.PUBLISHED) | 140 | return waitUntilLiveState(url, token, videoId, VideoState.PUBLISHED) |
141 | } | 141 | } |
142 | 142 | ||
143 | function waitUntilLiveWaiting (url: string, token: string, videoId: number | string) { | ||
144 | return waitUntilLiveState(url, token, videoId, VideoState.WAITING_FOR_LIVE) | ||
145 | } | ||
146 | |||
143 | function waitUntilLiveEnded (url: string, token: string, videoId: number | string) { | 147 | function waitUntilLiveEnded (url: string, token: string, videoId: number | string) { |
144 | return waitUntilLiveState(url, token, videoId, VideoState.LIVE_ENDED) | 148 | return waitUntilLiveState(url, token, videoId, VideoState.LIVE_ENDED) |
145 | } | 149 | } |
@@ -206,6 +210,7 @@ export { | |||
206 | checkLiveCleanup, | 210 | checkLiveCleanup, |
207 | waitUntilLiveSegmentGeneration, | 211 | waitUntilLiveSegmentGeneration, |
208 | stopFfmpeg, | 212 | stopFfmpeg, |
213 | waitUntilLiveWaiting, | ||
209 | sendRTMPStreamInVideo, | 214 | sendRTMPStreamInVideo, |
210 | waitUntilLiveEnded, | 215 | waitUntilLiveEnded, |
211 | waitFfmpegUntilError, | 216 | waitFfmpegUntilError, |