diff options
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) |