diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/api/live/live-constraints.ts | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
Diffstat (limited to 'server/tests/api/live/live-constraints.ts')
-rw-r--r-- | server/tests/api/live/live-constraints.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/live/live-constraints.ts b/server/tests/api/live/live-constraints.ts index 1c380883c..a00833569 100644 --- a/server/tests/api/live/live-constraints.ts +++ b/server/tests/api/live/live-constraints.ts | |||
@@ -8,8 +8,8 @@ import { | |||
8 | cleanupTests, | 8 | cleanupTests, |
9 | ConfigCommand, | 9 | ConfigCommand, |
10 | doubleFollow, | 10 | doubleFollow, |
11 | flushAndRunMultipleServers, | 11 | createMultipleServers, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | setAccessTokensToServers, | 13 | setAccessTokensToServers, |
14 | setDefaultVideoChannel, | 14 | setDefaultVideoChannel, |
15 | wait, | 15 | wait, |
@@ -19,7 +19,7 @@ import { | |||
19 | const expect = chai.expect | 19 | const expect = chai.expect |
20 | 20 | ||
21 | describe('Test live constraints', function () { | 21 | describe('Test live constraints', function () { |
22 | let servers: ServerInfo[] = [] | 22 | let servers: PeerTubeServer[] = [] |
23 | let userId: number | 23 | let userId: number |
24 | let userAccessToken: string | 24 | let userAccessToken: string |
25 | let userChannelId: number | 25 | let userChannelId: number |
@@ -63,7 +63,7 @@ describe('Test live constraints', function () { | |||
63 | before(async function () { | 63 | before(async function () { |
64 | this.timeout(120000) | 64 | this.timeout(120000) |
65 | 65 | ||
66 | servers = await flushAndRunMultipleServers(2) | 66 | servers = await createMultipleServers(2) |
67 | 67 | ||
68 | // Get the access tokens | 68 | // Get the access tokens |
69 | await setAccessTokensToServers(servers) | 69 | await setAccessTokensToServers(servers) |