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/check-params/video-blacklist.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/check-params/video-blacklist.ts')
-rw-r--r-- | server/tests/api/check-params/video-blacklist.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/video-blacklist.ts b/server/tests/api/check-params/video-blacklist.ts index 51609b982..b5d0e0778 100644 --- a/server/tests/api/check-params/video-blacklist.ts +++ b/server/tests/api/check-params/video-blacklist.ts | |||
@@ -10,17 +10,17 @@ import { | |||
10 | checkBadStartPagination, | 10 | checkBadStartPagination, |
11 | cleanupTests, | 11 | cleanupTests, |
12 | doubleFollow, | 12 | doubleFollow, |
13 | flushAndRunMultipleServers, | 13 | createMultipleServers, |
14 | makePostBodyRequest, | 14 | makePostBodyRequest, |
15 | makePutBodyRequest, | 15 | makePutBodyRequest, |
16 | ServerInfo, | 16 | PeerTubeServer, |
17 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
18 | waitJobs | 18 | waitJobs |
19 | } from '@shared/extra-utils' | 19 | } from '@shared/extra-utils' |
20 | import { VideoBlacklistType } from '@shared/models' | 20 | import { VideoBlacklistType } from '@shared/models' |
21 | 21 | ||
22 | describe('Test video blacklist API validators', function () { | 22 | describe('Test video blacklist API validators', function () { |
23 | let servers: ServerInfo[] | 23 | let servers: PeerTubeServer[] |
24 | let notBlacklistedVideoId: string | 24 | let notBlacklistedVideoId: string |
25 | let remoteVideoUUID: string | 25 | let remoteVideoUUID: string |
26 | let userAccessToken1 = '' | 26 | let userAccessToken1 = '' |
@@ -32,7 +32,7 @@ describe('Test video blacklist API validators', function () { | |||
32 | before(async function () { | 32 | before(async function () { |
33 | this.timeout(120000) | 33 | this.timeout(120000) |
34 | 34 | ||
35 | servers = await flushAndRunMultipleServers(2) | 35 | servers = await createMultipleServers(2) |
36 | 36 | ||
37 | await setAccessTokensToServers(servers) | 37 | await setAccessTokensToServers(servers) |
38 | await doubleFollow(servers[0], servers[1]) | 38 | await doubleFollow(servers[0], servers[1]) |