X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Flive.ts;h=2dc735c23531768906520ede628eefe0e1b39724;hb=cffef25313bdf7a6c435f56ac6715fdd91acf7b3;hp=81f10ed8eece36b0c7091c00113cdaea3526911b;hpb=05a60d85997c108d39bcfb14f1ffd4c74f8b1e93;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts index 81f10ed8e..2dc735c23 100644 --- a/server/tests/api/check-params/live.ts +++ b/server/tests/api/check-params/live.ts @@ -553,9 +553,15 @@ describe('Test video lives API validator', function () { const ffmpegCommand = sendRTMPStream({ rtmpBaseUrl: live.rtmpUrl, streamKey: live.streamKey }) await command.waitUntilPublished({ videoId: video.id }) + + await server.videos.update({ + id: video.id, + attributes: { privacy: VideoPrivacy.PUBLIC } // Same privacy, it's fine + }) + await server.videos.update({ id: video.id, - attributes: { privacy: VideoPrivacy.PUBLIC }, + attributes: { privacy: VideoPrivacy.UNLISTED }, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })