diff options
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/live.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts index 3e97dffdc..2b2d1beec 100644 --- a/server/tests/api/check-params/live.ts +++ b/server/tests/api/check-params/live.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | ||
5 | import { omit } from 'lodash' | 4 | import { omit } from 'lodash' |
6 | import { join } from 'path' | 5 | import { join } from 'path' |
7 | import { LiveVideo, VideoPrivacy } from '@shared/models' | 6 | import { LiveVideo, VideoPrivacy } from '@shared/models' |
@@ -14,11 +13,11 @@ import { | |||
14 | immutableAssign, | 13 | immutableAssign, |
15 | makePostBodyRequest, | 14 | makePostBodyRequest, |
16 | makeUploadRequest, | 15 | makeUploadRequest, |
16 | runAndTestFfmpegStreamError, | ||
17 | sendRTMPStream, | 17 | sendRTMPStream, |
18 | ServerInfo, | 18 | ServerInfo, |
19 | setAccessTokensToServers, | 19 | setAccessTokensToServers, |
20 | stopFfmpeg, | 20 | stopFfmpeg, |
21 | testFfmpegStreamError, | ||
22 | updateCustomSubConfig, | 21 | updateCustomSubConfig, |
23 | updateLive, | 22 | updateLive, |
24 | uploadVideoAndGetId, | 23 | uploadVideoAndGetId, |
@@ -30,9 +29,7 @@ describe('Test video lives API validator', function () { | |||
30 | const path = '/api/v1/videos/live' | 29 | const path = '/api/v1/videos/live' |
31 | let server: ServerInfo | 30 | let server: ServerInfo |
32 | let userAccessToken = '' | 31 | let userAccessToken = '' |
33 | let accountName: string | ||
34 | let channelId: number | 32 | let channelId: number |
35 | let channelName: string | ||
36 | let videoId: number | 33 | let videoId: number |
37 | let videoIdNotLive: number | 34 | let videoIdNotLive: number |
38 | 35 | ||
@@ -414,7 +411,7 @@ describe('Test video lives API validator', function () { | |||
414 | 411 | ||
415 | await waitUntilLiveStarts(server.url, server.accessToken, videoId) | 412 | await waitUntilLiveStarts(server.url, server.accessToken, videoId) |
416 | 413 | ||
417 | await testFfmpegStreamError(server.url, server.accessToken, videoId, true) | 414 | await runAndTestFfmpegStreamError(server.url, server.accessToken, videoId, true) |
418 | 415 | ||
419 | await stopFfmpeg(command) | 416 | await stopFfmpeg(command) |
420 | }) | 417 | }) |