diff options
Diffstat (limited to 'server/tests/api/live')
-rw-r--r-- | server/tests/api/live/live-permanent.ts | 6 | ||||
-rw-r--r-- | server/tests/api/live/live-save-replay.ts | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/server/tests/api/live/live-permanent.ts b/server/tests/api/live/live-permanent.ts index 2701c65e3..9e6c6cf70 100644 --- a/server/tests/api/live/live-permanent.ts +++ b/server/tests/api/live/live-permanent.ts | |||
@@ -20,7 +20,8 @@ import { | |||
20 | updateLive, | 20 | updateLive, |
21 | wait, | 21 | wait, |
22 | waitJobs, | 22 | waitJobs, |
23 | waitUntilLivePublished | 23 | waitUntilLivePublished, |
24 | waitUntilLiveWaiting | ||
24 | } from '../../../../shared/extra-utils' | 25 | } from '../../../../shared/extra-utils' |
25 | 26 | ||
26 | const expect = chai.expect | 27 | const expect = chai.expect |
@@ -111,7 +112,7 @@ describe('Permenant live', function () { | |||
111 | }) | 112 | }) |
112 | 113 | ||
113 | it('Should stream into this permanent live', async function () { | 114 | it('Should stream into this permanent live', async function () { |
114 | this.timeout(40000) | 115 | this.timeout(60000) |
115 | 116 | ||
116 | const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, videoUUID) | 117 | const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, videoUUID) |
117 | 118 | ||
@@ -122,6 +123,7 @@ describe('Permenant live', function () { | |||
122 | await checkVideoState(videoUUID, VideoState.PUBLISHED) | 123 | await checkVideoState(videoUUID, VideoState.PUBLISHED) |
123 | 124 | ||
124 | await stopFfmpeg(command) | 125 | await stopFfmpeg(command) |
126 | await waitUntilLiveWaiting(servers[0].url, servers[0].accessToken, videoUUID) | ||
125 | 127 | ||
126 | await waitJobs(servers) | 128 | await waitJobs(servers) |
127 | }) | 129 | }) |
diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts index bd683b2bf..6cd8cc23f 100644 --- a/server/tests/api/live/live-save-replay.ts +++ b/server/tests/api/live/live-save-replay.ts | |||
@@ -136,7 +136,7 @@ describe('Save replay setting', function () { | |||
136 | }) | 136 | }) |
137 | 137 | ||
138 | it('Should correctly delete the video files after the stream ended', async function () { | 138 | it('Should correctly delete the video files after the stream ended', async function () { |
139 | this.timeout(30000) | 139 | this.timeout(40000) |
140 | 140 | ||
141 | await stopFfmpeg(ffmpegCommand) | 141 | await stopFfmpeg(ffmpegCommand) |
142 | 142 | ||
@@ -146,6 +146,8 @@ describe('Save replay setting', function () { | |||
146 | await checkVideosExist(liveVideoUUID, false, HttpStatusCode.OK_200) | 146 | await checkVideosExist(liveVideoUUID, false, HttpStatusCode.OK_200) |
147 | await checkVideoState(liveVideoUUID, VideoState.LIVE_ENDED) | 147 | await checkVideoState(liveVideoUUID, VideoState.LIVE_ENDED) |
148 | 148 | ||
149 | await waitJobs(servers) | ||
150 | |||
149 | // No resolutions saved since we did not save replay | 151 | // No resolutions saved since we did not save replay |
150 | await checkLiveCleanup(servers[0], liveVideoUUID, []) | 152 | await checkLiveCleanup(servers[0], liveVideoUUID, []) |
151 | }) | 153 | }) |