diff options
Diffstat (limited to 'server/tests/api/check-params/videos.ts')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index 69bdae7cf..c60de2640 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -11,13 +11,13 @@ import { | |||
11 | checkBadStartPagination, | 11 | checkBadStartPagination, |
12 | checkUploadVideoParam, | 12 | checkUploadVideoParam, |
13 | cleanupTests, | 13 | cleanupTests, |
14 | flushAndRunServer, | 14 | createSingleServer, |
15 | makeDeleteRequest, | 15 | makeDeleteRequest, |
16 | makeGetRequest, | 16 | makeGetRequest, |
17 | makePutBodyRequest, | 17 | makePutBodyRequest, |
18 | makeUploadRequest, | 18 | makeUploadRequest, |
19 | root, | 19 | root, |
20 | ServerInfo, | 20 | PeerTubeServer, |
21 | setAccessTokensToServers | 21 | setAccessTokensToServers |
22 | } from '@shared/extra-utils' | 22 | } from '@shared/extra-utils' |
23 | import { PeerTubeProblemDocument, VideoCreateResult, VideoPrivacy } from '@shared/models' | 23 | import { PeerTubeProblemDocument, VideoCreateResult, VideoPrivacy } from '@shared/models' |
@@ -26,7 +26,7 @@ const expect = chai.expect | |||
26 | 26 | ||
27 | describe('Test videos API validator', function () { | 27 | describe('Test videos API validator', function () { |
28 | const path = '/api/v1/videos/' | 28 | const path = '/api/v1/videos/' |
29 | let server: ServerInfo | 29 | let server: PeerTubeServer |
30 | let userAccessToken = '' | 30 | let userAccessToken = '' |
31 | let accountName: string | 31 | let accountName: string |
32 | let channelId: number | 32 | let channelId: number |
@@ -38,7 +38,7 @@ describe('Test videos API validator', function () { | |||
38 | before(async function () { | 38 | before(async function () { |
39 | this.timeout(30000) | 39 | this.timeout(30000) |
40 | 40 | ||
41 | server = await flushAndRunServer(1) | 41 | server = await createSingleServer(1) |
42 | 42 | ||
43 | await setAccessTokensToServers([ server ]) | 43 | await setAccessTokensToServers([ server ]) |
44 | 44 | ||