aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-03 15:33:30 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commit97969c4edf51b37eee691adba43368bb0fbb729b (patch)
treec1089f898fb936d75651630afcf406995eeb9fba /server/tests/api/check-params
parentaf4ae64f6faf38f8179f2e07d3cd4ad60006be92 (diff)
downloadPeerTube-97969c4edf51b37eee691adba43368bb0fbb729b.tar.gz
PeerTube-97969c4edf51b37eee691adba43368bb0fbb729b.tar.zst
PeerTube-97969c4edf51b37eee691adba43368bb0fbb729b.zip
Add check constraints live tests
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r--server/tests/api/check-params/live.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts
index 4134fca0c..3e97dffdc 100644
--- a/server/tests/api/check-params/live.ts
+++ b/server/tests/api/check-params/live.ts
@@ -18,6 +18,7 @@ import {
18 ServerInfo, 18 ServerInfo,
19 setAccessTokensToServers, 19 setAccessTokensToServers,
20 stopFfmpeg, 20 stopFfmpeg,
21 testFfmpegStreamError,
21 updateCustomSubConfig, 22 updateCustomSubConfig,
22 updateLive, 23 updateLive,
23 uploadVideoAndGetId, 24 uploadVideoAndGetId,
@@ -402,6 +403,21 @@ describe('Test video lives API validator', function () {
402 403
403 await stopFfmpeg(command) 404 await stopFfmpeg(command)
404 }) 405 })
406
407 it('Should fail to stream twice in the save live', async function () {
408 this.timeout(30000)
409
410 const resLive = await getLive(server.url, server.accessToken, videoId)
411 const live: LiveVideo = resLive.body
412
413 const command = sendRTMPStream(live.rtmpUrl, live.streamKey)
414
415 await waitUntilLiveStarts(server.url, server.accessToken, videoId)
416
417 await testFfmpegStreamError(server.url, server.accessToken, videoId, true)
418
419 await stopFfmpeg(command)
420 })
405 }) 421 })
406 422
407 after(async function () { 423 after(async function () {