aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users/users-multiple-servers.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/api/users/users-multiple-servers.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/api/users/users-multiple-servers.ts')
-rw-r--r--server/tests/api/users/users-multiple-servers.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/users/users-multiple-servers.ts b/server/tests/api/users/users-multiple-servers.ts
index f8d7ae88e..e629966bb 100644
--- a/server/tests/api/users/users-multiple-servers.ts
+++ b/server/tests/api/users/users-multiple-servers.ts
@@ -8,8 +8,8 @@ import {
8 checkVideoFilesWereRemoved, 8 checkVideoFilesWereRemoved,
9 cleanupTests, 9 cleanupTests,
10 doubleFollow, 10 doubleFollow,
11 flushAndRunMultipleServers, 11 createMultipleServers,
12 ServerInfo, 12 PeerTubeServer,
13 setAccessTokensToServers, 13 setAccessTokensToServers,
14 testImage, 14 testImage,
15 waitJobs 15 waitJobs
@@ -19,7 +19,7 @@ import { User } from '@shared/models'
19const expect = chai.expect 19const expect = chai.expect
20 20
21describe('Test users with multiple servers', function () { 21describe('Test users with multiple servers', function () {
22 let servers: ServerInfo[] = [] 22 let servers: PeerTubeServer[] = []
23 let user: User 23 let user: User
24 let userId: number 24 let userId: number
25 let videoUUID: string 25 let videoUUID: string
@@ -29,7 +29,7 @@ describe('Test users with multiple servers', function () {
29 before(async function () { 29 before(async function () {
30 this.timeout(120_000) 30 this.timeout(120_000)
31 31
32 servers = await flushAndRunMultipleServers(3) 32 servers = await createMultipleServers(3)
33 33
34 // Get the access tokens 34 // Get the access tokens
35 await setAccessTokensToServers(servers) 35 await setAccessTokensToServers(servers)