aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/redundancy.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/check-params/redundancy.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/check-params/redundancy.ts')
-rw-r--r--server/tests/api/check-params/redundancy.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/redundancy.ts b/server/tests/api/check-params/redundancy.ts
index fca92fde4..18b98a0f9 100644
--- a/server/tests/api/check-params/redundancy.ts
+++ b/server/tests/api/check-params/redundancy.ts
@@ -9,18 +9,18 @@ import {
9 checkBadStartPagination, 9 checkBadStartPagination,
10 cleanupTests, 10 cleanupTests,
11 doubleFollow, 11 doubleFollow,
12 flushAndRunMultipleServers, 12 createMultipleServers,
13 makeDeleteRequest, 13 makeDeleteRequest,
14 makeGetRequest, 14 makeGetRequest,
15 makePostBodyRequest, 15 makePostBodyRequest,
16 makePutBodyRequest, 16 makePutBodyRequest,
17 ServerInfo, 17 PeerTubeServer,
18 setAccessTokensToServers, 18 setAccessTokensToServers,
19 waitJobs 19 waitJobs
20} from '../../../../shared/extra-utils' 20} from '../../../../shared/extra-utils'
21 21
22describe('Test server redundancy API validators', function () { 22describe('Test server redundancy API validators', function () {
23 let servers: ServerInfo[] 23 let servers: PeerTubeServer[]
24 let userAccessToken = null 24 let userAccessToken = null
25 let videoIdLocal: number 25 let videoIdLocal: number
26 let videoRemote: VideoCreateResult 26 let videoRemote: VideoCreateResult
@@ -30,7 +30,7 @@ describe('Test server redundancy API validators', function () {
30 before(async function () { 30 before(async function () {
31 this.timeout(80000) 31 this.timeout(80000)
32 32
33 servers = await flushAndRunMultipleServers(2) 33 servers = await createMultipleServers(2)
34 34
35 await setAccessTokensToServers(servers) 35 await setAccessTokensToServers(servers)
36 await doubleFollow(servers[0], servers[1]) 36 await doubleFollow(servers[0], servers[1])