diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-08 11:17:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:17 +0200 |
commit | e3d15a6a9aed97a004d9dac1b7a6499d794e080a (patch) | |
tree | 7637ac85a8659a66a1290c9533e0206e9a0c5a30 /server/tests/api/live/live.ts | |
parent | a1637fa1e25b60a88f7cfe50aac8953f50d55761 (diff) | |
download | PeerTube-e3d15a6a9aed97a004d9dac1b7a6499d794e080a.tar.gz PeerTube-e3d15a6a9aed97a004d9dac1b7a6499d794e080a.tar.zst PeerTube-e3d15a6a9aed97a004d9dac1b7a6499d794e080a.zip |
Introduce blacklist command
Diffstat (limited to 'server/tests/api/live/live.ts')
-rw-r--r-- | server/tests/api/live/live.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts index 5d70d8513..cb52e4431 100644 --- a/server/tests/api/live/live.ts +++ b/server/tests/api/live/live.ts | |||
@@ -7,7 +7,6 @@ import { ffprobePromise, getVideoStreamFromFile } from '@server/helpers/ffprobe- | |||
7 | import { LiveVideo, LiveVideoCreate, Video, VideoDetails, VideoPrivacy, VideoState, VideoStreamingPlaylistType } from '@shared/models' | 7 | import { LiveVideo, LiveVideoCreate, Video, VideoDetails, VideoPrivacy, VideoState, VideoStreamingPlaylistType } from '@shared/models' |
8 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' | 8 | import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes' |
9 | import { | 9 | import { |
10 | addVideoToBlacklist, | ||
11 | buildServerDirectory, | 10 | buildServerDirectory, |
12 | checkLiveCleanup, | 11 | checkLiveCleanup, |
13 | checkLiveSegmentHash, | 12 | checkLiveSegmentHash, |
@@ -347,7 +346,7 @@ describe('Test live', function () { | |||
347 | 346 | ||
348 | liveVideo = await createLiveWrapper() | 347 | liveVideo = await createLiveWrapper() |
349 | 348 | ||
350 | await addVideoToBlacklist(servers[0].url, servers[0].accessToken, liveVideo.uuid) | 349 | await servers[0].blacklistCommand.add({ videoId: liveVideo.uuid }) |
351 | 350 | ||
352 | const command = sendRTMPStream(rtmpUrl + '/live', liveVideo.streamKey) | 351 | const command = sendRTMPStream(rtmpUrl + '/live', liveVideo.streamKey) |
353 | await testFfmpegStreamError(command, true) | 352 | await testFfmpegStreamError(command, true) |