diff options
Diffstat (limited to 'server/tests/api/videos/video-playlist-thumbnails.ts')
-rw-r--r-- | server/tests/api/videos/video-playlist-thumbnails.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/videos/video-playlist-thumbnails.ts b/server/tests/api/videos/video-playlist-thumbnails.ts index 709f64c4d..9a682c12b 100644 --- a/server/tests/api/videos/video-playlist-thumbnails.ts +++ b/server/tests/api/videos/video-playlist-thumbnails.ts | |||
@@ -5,8 +5,8 @@ import * as chai from 'chai' | |||
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | doubleFollow, | 7 | doubleFollow, |
8 | flushAndRunMultipleServers, | 8 | createMultipleServers, |
9 | ServerInfo, | 9 | PeerTubeServer, |
10 | setAccessTokensToServers, | 10 | setAccessTokensToServers, |
11 | setDefaultVideoChannel, | 11 | setDefaultVideoChannel, |
12 | testImage, | 12 | testImage, |
@@ -17,7 +17,7 @@ import { VideoPlaylistPrivacy } from '../../../../shared/models/videos/playlist/ | |||
17 | const expect = chai.expect | 17 | const expect = chai.expect |
18 | 18 | ||
19 | describe('Playlist thumbnail', function () { | 19 | describe('Playlist thumbnail', function () { |
20 | let servers: ServerInfo[] = [] | 20 | let servers: PeerTubeServer[] = [] |
21 | 21 | ||
22 | let playlistWithoutThumbnailId: number | 22 | let playlistWithoutThumbnailId: number |
23 | let playlistWithThumbnailId: number | 23 | let playlistWithThumbnailId: number |
@@ -30,13 +30,13 @@ describe('Playlist thumbnail', function () { | |||
30 | let video1: number | 30 | let video1: number |
31 | let video2: number | 31 | let video2: number |
32 | 32 | ||
33 | async function getPlaylistWithoutThumbnail (server: ServerInfo) { | 33 | async function getPlaylistWithoutThumbnail (server: PeerTubeServer) { |
34 | const body = await server.playlists.list({ start: 0, count: 10 }) | 34 | const body = await server.playlists.list({ start: 0, count: 10 }) |
35 | 35 | ||
36 | return body.data.find(p => p.displayName === 'playlist without thumbnail') | 36 | return body.data.find(p => p.displayName === 'playlist without thumbnail') |
37 | } | 37 | } |
38 | 38 | ||
39 | async function getPlaylistWithThumbnail (server: ServerInfo) { | 39 | async function getPlaylistWithThumbnail (server: PeerTubeServer) { |
40 | const body = await server.playlists.list({ start: 0, count: 10 }) | 40 | const body = await server.playlists.list({ start: 0, count: 10 }) |
41 | 41 | ||
42 | return body.data.find(p => p.displayName === 'playlist with thumbnail') | 42 | return body.data.find(p => p.displayName === 'playlist with thumbnail') |
@@ -45,7 +45,7 @@ describe('Playlist thumbnail', function () { | |||
45 | before(async function () { | 45 | before(async function () { |
46 | this.timeout(120000) | 46 | this.timeout(120000) |
47 | 47 | ||
48 | servers = await flushAndRunMultipleServers(2, { transcoding: { enabled: false } }) | 48 | servers = await createMultipleServers(2, { transcoding: { enabled: false } }) |
49 | 49 | ||
50 | // Get the access tokens | 50 | // Get the access tokens |
51 | await setAccessTokensToServers(servers) | 51 | await setAccessTokensToServers(servers) |