aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/client.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/client.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/client.ts')
-rw-r--r--server/tests/client.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/client.ts b/server/tests/client.ts
index caf6fb00c..959b34653 100644
--- a/server/tests/client.ts
+++ b/server/tests/client.ts
@@ -8,10 +8,10 @@ import { Account, HTMLServerConfig, ServerConfig, VideoPlaylistCreateResult, Vid
8import { 8import {
9 cleanupTests, 9 cleanupTests,
10 doubleFollow, 10 doubleFollow,
11 flushAndRunMultipleServers, 11 createMultipleServers,
12 makeGetRequest, 12 makeGetRequest,
13 makeHTMLRequest, 13 makeHTMLRequest,
14 ServerInfo, 14 PeerTubeServer,
15 setAccessTokensToServers, 15 setAccessTokensToServers,
16 setDefaultVideoChannel, 16 setDefaultVideoChannel,
17 waitJobs 17 waitJobs
@@ -29,7 +29,7 @@ function checkIndexTags (html: string, title: string, description: string, css:
29} 29}
30 30
31describe('Test a client controllers', function () { 31describe('Test a client controllers', function () {
32 let servers: ServerInfo[] = [] 32 let servers: PeerTubeServer[] = []
33 let account: Account 33 let account: Account
34 34
35 const videoName = 'my super name for server 1' 35 const videoName = 'my super name for server 1'
@@ -51,7 +51,7 @@ describe('Test a client controllers', function () {
51 before(async function () { 51 before(async function () {
52 this.timeout(120000) 52 this.timeout(120000)
53 53
54 servers = await flushAndRunMultipleServers(2) 54 servers = await createMultipleServers(2)
55 55
56 await setAccessTokensToServers(servers) 56 await setAccessTokensToServers(servers)
57 57