aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/create-import-video-file-job.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:47:51 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch)
treeeaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/cli/create-import-video-file-job.ts
parent89d241a79c262b9775c233b73cff080043ebb5e6 (diff)
downloadPeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip
Use an object to represent a server
Diffstat (limited to 'server/tests/cli/create-import-video-file-job.ts')
-rw-r--r--server/tests/cli/create-import-video-file-job.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts
index 26f4bdc8d..e8cd71e09 100644
--- a/server/tests/cli/create-import-video-file-job.ts
+++ b/server/tests/cli/create-import-video-file-job.ts
@@ -2,7 +2,7 @@
2 2
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { cleanupTests, doubleFollow, flushAndRunMultipleServers, ServerInfo, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' 5import { cleanupTests, doubleFollow, createMultipleServers, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils'
6import { VideoFile } from '@shared/models' 6import { VideoFile } from '@shared/models'
7 7
8const expect = chai.expect 8const expect = chai.expect
@@ -20,7 +20,7 @@ function assertVideoProperties (video: VideoFile, resolution: number, extname: s
20describe('Test create import video jobs', function () { 20describe('Test create import video jobs', function () {
21 this.timeout(60000) 21 this.timeout(60000)
22 22
23 let servers: ServerInfo[] = [] 23 let servers: PeerTubeServer[] = []
24 let video1UUID: string 24 let video1UUID: string
25 let video2UUID: string 25 let video2UUID: string
26 26
@@ -28,7 +28,7 @@ describe('Test create import video jobs', function () {
28 this.timeout(90000) 28 this.timeout(90000)
29 29
30 // Run server 2 to have transcoding enabled 30 // Run server 2 to have transcoding enabled
31 servers = await flushAndRunMultipleServers(2) 31 servers = await createMultipleServers(2)
32 await setAccessTokensToServers(servers) 32 await setAccessTokensToServers(servers)
33 33
34 await doubleFollow(servers[0], servers[1]) 34 await doubleFollow(servers[0], servers[1])