diff options
Diffstat (limited to 'server/tests/plugins/plugin-transcoding.ts')
-rw-r--r-- | server/tests/plugins/plugin-transcoding.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/plugins/plugin-transcoding.ts b/server/tests/plugins/plugin-transcoding.ts index 3a03065b0..3c54d3796 100644 --- a/server/tests/plugins/plugin-transcoding.ts +++ b/server/tests/plugins/plugin-transcoding.ts | |||
@@ -6,9 +6,9 @@ import { join } from 'path' | |||
6 | import { getAudioStream, getVideoFileFPS, getVideoStreamFromFile } from '@server/helpers/ffprobe-utils' | 6 | import { getAudioStream, getVideoFileFPS, getVideoStreamFromFile } from '@server/helpers/ffprobe-utils' |
7 | import { | 7 | import { |
8 | cleanupTests, | 8 | cleanupTests, |
9 | flushAndRunServer, | 9 | createSingleServer, |
10 | PluginsCommand, | 10 | PluginsCommand, |
11 | ServerInfo, | 11 | PeerTubeServer, |
12 | setAccessTokensToServers, | 12 | setAccessTokensToServers, |
13 | setDefaultVideoChannel, | 13 | setDefaultVideoChannel, |
14 | testFfmpegStreamError, | 14 | testFfmpegStreamError, |
@@ -16,7 +16,7 @@ import { | |||
16 | } from '@shared/extra-utils' | 16 | } from '@shared/extra-utils' |
17 | import { VideoPrivacy } from '@shared/models' | 17 | import { VideoPrivacy } from '@shared/models' |
18 | 18 | ||
19 | async function createLiveWrapper (server: ServerInfo) { | 19 | async function createLiveWrapper (server: PeerTubeServer) { |
20 | const liveAttributes = { | 20 | const liveAttributes = { |
21 | name: 'live video', | 21 | name: 'live video', |
22 | channelId: server.store.channel.id, | 22 | channelId: server.store.channel.id, |
@@ -28,7 +28,7 @@ async function createLiveWrapper (server: ServerInfo) { | |||
28 | return uuid | 28 | return uuid |
29 | } | 29 | } |
30 | 30 | ||
31 | function updateConf (server: ServerInfo, vodProfile: string, liveProfile: string) { | 31 | function updateConf (server: PeerTubeServer, vodProfile: string, liveProfile: string) { |
32 | return server.config.updateCustomSubConfig({ | 32 | return server.config.updateCustomSubConfig({ |
33 | newConfig: { | 33 | newConfig: { |
34 | transcoding: { | 34 | transcoding: { |
@@ -64,12 +64,12 @@ function updateConf (server: ServerInfo, vodProfile: string, liveProfile: string | |||
64 | } | 64 | } |
65 | 65 | ||
66 | describe('Test transcoding plugins', function () { | 66 | describe('Test transcoding plugins', function () { |
67 | let server: ServerInfo | 67 | let server: PeerTubeServer |
68 | 68 | ||
69 | before(async function () { | 69 | before(async function () { |
70 | this.timeout(60000) | 70 | this.timeout(60000) |
71 | 71 | ||
72 | server = await flushAndRunServer(1) | 72 | server = await createSingleServer(1) |
73 | await setAccessTokensToServers([ server ]) | 73 | await setAccessTokensToServers([ server ]) |
74 | await setDefaultVideoChannel([ server ]) | 74 | await setDefaultVideoChannel([ server ]) |
75 | 75 | ||