diff options
Diffstat (limited to 'server/tests/api/videos/video-hls.ts')
-rw-r--r-- | server/tests/api/videos/video-hls.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/videos/video-hls.ts index 9d79f2683..4c4b18887 100644 --- a/server/tests/api/videos/video-hls.ts +++ b/server/tests/api/videos/video-hls.ts | |||
@@ -11,9 +11,9 @@ import { | |||
11 | checkTmpIsEmpty, | 11 | checkTmpIsEmpty, |
12 | cleanupTests, | 12 | cleanupTests, |
13 | doubleFollow, | 13 | doubleFollow, |
14 | flushAndRunMultipleServers, | 14 | createMultipleServers, |
15 | makeRawRequest, | 15 | makeRawRequest, |
16 | ServerInfo, | 16 | PeerTubeServer, |
17 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
18 | waitJobs, | 18 | waitJobs, |
19 | webtorrentAdd | 19 | webtorrentAdd |
@@ -23,7 +23,7 @@ import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants' | |||
23 | 23 | ||
24 | const expect = chai.expect | 24 | const expect = chai.expect |
25 | 25 | ||
26 | async function checkHlsPlaylist (servers: ServerInfo[], videoUUID: string, hlsOnly: boolean, resolutions = [ 240, 360, 480, 720 ]) { | 26 | async function checkHlsPlaylist (servers: PeerTubeServer[], videoUUID: string, hlsOnly: boolean, resolutions = [ 240, 360, 480, 720 ]) { |
27 | for (const server of servers) { | 27 | for (const server of servers) { |
28 | const videoDetails = await server.videos.get({ id: videoUUID }) | 28 | const videoDetails = await server.videos.get({ id: videoUUID }) |
29 | const baseUrl = `http://${videoDetails.account.host}` | 29 | const baseUrl = `http://${videoDetails.account.host}` |
@@ -98,7 +98,7 @@ async function checkHlsPlaylist (servers: ServerInfo[], videoUUID: string, hlsOn | |||
98 | } | 98 | } |
99 | 99 | ||
100 | describe('Test HLS videos', function () { | 100 | describe('Test HLS videos', function () { |
101 | let servers: ServerInfo[] = [] | 101 | let servers: PeerTubeServer[] = [] |
102 | let videoUUID = '' | 102 | let videoUUID = '' |
103 | let videoAudioUUID = '' | 103 | let videoAudioUUID = '' |
104 | 104 | ||
@@ -176,7 +176,7 @@ describe('Test HLS videos', function () { | |||
176 | } | 176 | } |
177 | } | 177 | } |
178 | } | 178 | } |
179 | servers = await flushAndRunMultipleServers(2, configOverride) | 179 | servers = await createMultipleServers(2, configOverride) |
180 | 180 | ||
181 | // Get the access tokens | 181 | // Get the access tokens |
182 | await setAccessTokensToServers(servers) | 182 | await setAccessTokensToServers(servers) |