aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-09 14:42:42 +0100
committerChocobozzz <me@florianbigard.com>2020-12-09 14:45:47 +0100
commit0d8de2756fdc43be61a82a96c17d12ee52ba0143 (patch)
tree85b02e683f0dc475e044356dc5adb6246181959d /server/tests/api/check-params
parente0fea785bf28966da09cdc16a274c9e750b488f4 (diff)
downloadPeerTube-0d8de2756fdc43be61a82a96c17d12ee52ba0143.tar.gz
PeerTube-0d8de2756fdc43be61a82a96c17d12ee52ba0143.tar.zst
PeerTube-0d8de2756fdc43be61a82a96c17d12ee52ba0143.zip
Fix live tests
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r--server/tests/api/check-params/live.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts
index 40dca908b..7e76caf6e 100644
--- a/server/tests/api/check-params/live.ts
+++ b/server/tests/api/check-params/live.ts
@@ -22,7 +22,7 @@ import {
22 updateLive, 22 updateLive,
23 uploadVideoAndGetId, 23 uploadVideoAndGetId,
24 userLogin, 24 userLogin,
25 waitUntilLiveStarts 25 waitUntilLivePublished
26} from '../../../../shared/extra-utils' 26} from '../../../../shared/extra-utils'
27import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' 27import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
28 28
@@ -409,7 +409,7 @@ describe('Test video lives API validator', function () {
409 409
410 const command = sendRTMPStream(live.rtmpUrl, live.streamKey) 410 const command = sendRTMPStream(live.rtmpUrl, live.streamKey)
411 411
412 await waitUntilLiveStarts(server.url, server.accessToken, videoId) 412 await waitUntilLivePublished(server.url, server.accessToken, videoId)
413 await updateLive(server.url, server.accessToken, videoId, {}, HttpStatusCode.BAD_REQUEST_400) 413 await updateLive(server.url, server.accessToken, videoId, {}, HttpStatusCode.BAD_REQUEST_400)
414 414
415 await stopFfmpeg(command) 415 await stopFfmpeg(command)
@@ -423,7 +423,7 @@ describe('Test video lives API validator', function () {
423 423
424 const command = sendRTMPStream(live.rtmpUrl, live.streamKey) 424 const command = sendRTMPStream(live.rtmpUrl, live.streamKey)
425 425
426 await waitUntilLiveStarts(server.url, server.accessToken, videoId) 426 await waitUntilLivePublished(server.url, server.accessToken, videoId)
427 427
428 await runAndTestFfmpegStreamError(server.url, server.accessToken, videoId, true) 428 await runAndTestFfmpegStreamError(server.url, server.accessToken, videoId, true)
429 429