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/videos/video-privacy.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/videos/video-privacy.ts')
-rw-r--r-- | server/tests/api/videos/video-privacy.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/videos/video-privacy.ts b/server/tests/api/videos/video-privacy.ts index de08a9e7b..5ec626155 100644 --- a/server/tests/api/videos/video-privacy.ts +++ b/server/tests/api/videos/video-privacy.ts | |||
@@ -3,13 +3,13 @@ | |||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/core-utils' |
6 | import { cleanupTests, doubleFollow, flushAndRunServer, ServerInfo, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' | 6 | import { cleanupTests, doubleFollow, createSingleServer, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/extra-utils' |
7 | import { VideoCreateResult, VideoPrivacy } from '@shared/models' | 7 | import { VideoCreateResult, VideoPrivacy } from '@shared/models' |
8 | 8 | ||
9 | const expect = chai.expect | 9 | const expect = chai.expect |
10 | 10 | ||
11 | describe('Test video privacy', function () { | 11 | describe('Test video privacy', function () { |
12 | const servers: ServerInfo[] = [] | 12 | const servers: PeerTubeServer[] = [] |
13 | let anotherUserToken: string | 13 | let anotherUserToken: string |
14 | 14 | ||
15 | let privateVideoId: number | 15 | let privateVideoId: number |
@@ -35,8 +35,8 @@ describe('Test video privacy', function () { | |||
35 | this.timeout(50000) | 35 | this.timeout(50000) |
36 | 36 | ||
37 | // Run servers | 37 | // Run servers |
38 | servers.push(await flushAndRunServer(1, dontFederateUnlistedConfig)) | 38 | servers.push(await createSingleServer(1, dontFederateUnlistedConfig)) |
39 | servers.push(await flushAndRunServer(2)) | 39 | servers.push(await createSingleServer(2)) |
40 | 40 | ||
41 | // Get the access tokens | 41 | // Get the access tokens |
42 | await setAccessTokensToServers(servers) | 42 | await setAccessTokensToServers(servers) |