diff options
Diffstat (limited to 'server/tests/cli/regenerate-thumbnails.ts')
-rw-r--r-- | server/tests/cli/regenerate-thumbnails.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/cli/regenerate-thumbnails.ts b/server/tests/cli/regenerate-thumbnails.ts index 2df1a1157..d532a5c2b 100644 --- a/server/tests/cli/regenerate-thumbnails.ts +++ b/server/tests/cli/regenerate-thumbnails.ts | |||
@@ -7,14 +7,14 @@ import { Video } from '@shared/models' | |||
7 | import { | 7 | import { |
8 | cleanupTests, | 8 | cleanupTests, |
9 | doubleFollow, | 9 | doubleFollow, |
10 | flushAndRunMultipleServers, | 10 | createMultipleServers, |
11 | makeRawRequest, | 11 | makeRawRequest, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | setAccessTokensToServers, | 13 | setAccessTokensToServers, |
14 | waitJobs | 14 | waitJobs |
15 | } from '../../../shared/extra-utils' | 15 | } from '../../../shared/extra-utils' |
16 | 16 | ||
17 | async function testThumbnail (server: ServerInfo, videoId: number | string) { | 17 | async function testThumbnail (server: PeerTubeServer, videoId: number | string) { |
18 | const video = await server.videos.get({ id: videoId }) | 18 | const video = await server.videos.get({ id: videoId }) |
19 | 19 | ||
20 | const requests = [ | 20 | const requests = [ |
@@ -29,7 +29,7 @@ async function testThumbnail (server: ServerInfo, videoId: number | string) { | |||
29 | } | 29 | } |
30 | 30 | ||
31 | describe('Test regenerate thumbnails script', function () { | 31 | describe('Test regenerate thumbnails script', function () { |
32 | let servers: ServerInfo[] | 32 | let servers: PeerTubeServer[] |
33 | 33 | ||
34 | let video1: Video | 34 | let video1: Video |
35 | let video2: Video | 35 | let video2: Video |
@@ -41,7 +41,7 @@ describe('Test regenerate thumbnails script', function () { | |||
41 | before(async function () { | 41 | before(async function () { |
42 | this.timeout(60000) | 42 | this.timeout(60000) |
43 | 43 | ||
44 | servers = await flushAndRunMultipleServers(2) | 44 | servers = await createMultipleServers(2) |
45 | await setAccessTokensToServers(servers) | 45 | await setAccessTokensToServers(servers) |
46 | 46 | ||
47 | await doubleFollow(servers[0], servers[1]) | 47 | await doubleFollow(servers[0], servers[1]) |