aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/peertube.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli/peertube.ts')
-rw-r--r--server/tests/cli/peertube.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/cli/peertube.ts b/server/tests/cli/peertube.ts
index a83aa7724..f19b6ae22 100644
--- a/server/tests/cli/peertube.ts
+++ b/server/tests/cli/peertube.ts
@@ -8,16 +8,16 @@ import {
8 cleanupTests, 8 cleanupTests,
9 CLICommand, 9 CLICommand,
10 doubleFollow, 10 doubleFollow,
11 flushAndRunServer, 11 createSingleServer,
12 ImportsCommand, 12 ImportsCommand,
13 ServerInfo, 13 PeerTubeServer,
14 setAccessTokensToServers, 14 setAccessTokensToServers,
15 testHelloWorldRegisteredSettings, 15 testHelloWorldRegisteredSettings,
16 waitJobs 16 waitJobs
17} from '../../../shared/extra-utils' 17} from '../../../shared/extra-utils'
18 18
19describe('Test CLI wrapper', function () { 19describe('Test CLI wrapper', function () {
20 let server: ServerInfo 20 let server: PeerTubeServer
21 let userAccessToken: string 21 let userAccessToken: string
22 22
23 let cliCommand: CLICommand 23 let cliCommand: CLICommand
@@ -27,7 +27,7 @@ describe('Test CLI wrapper', function () {
27 before(async function () { 27 before(async function () {
28 this.timeout(30000) 28 this.timeout(30000)
29 29
30 server = await flushAndRunServer(1) 30 server = await createSingleServer(1)
31 await setAccessTokensToServers([ server ]) 31 await setAccessTokensToServers([ server ])
32 32
33 await server.users.create({ username: 'user_1', password: 'super_password' }) 33 await server.users.create({ username: 'user_1', password: 'super_password' })
@@ -210,14 +210,14 @@ describe('Test CLI wrapper', function () {
210 }) 210 })
211 211
212 describe('Manage video redundancies', function () { 212 describe('Manage video redundancies', function () {
213 let anotherServer: ServerInfo 213 let anotherServer: PeerTubeServer
214 let video1Server2: number 214 let video1Server2: number
215 let servers: ServerInfo[] 215 let servers: PeerTubeServer[]
216 216
217 before(async function () { 217 before(async function () {
218 this.timeout(120000) 218 this.timeout(120000)
219 219
220 anotherServer = await flushAndRunServer(2) 220 anotherServer = await createSingleServer(2)
221 await setAccessTokensToServers([ anotherServer ]) 221 await setAccessTokensToServers([ anotherServer ])
222 222
223 await doubleFollow(server, anotherServer) 223 await doubleFollow(server, anotherServer)