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-captions.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-captions.ts')
-rw-r--r-- | server/tests/api/check-params/video-captions.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/video-captions.ts b/server/tests/api/check-params/video-captions.ts index 913f894b9..26aab79e7 100644 --- a/server/tests/api/check-params/video-captions.ts +++ b/server/tests/api/check-params/video-captions.ts | |||
@@ -5,11 +5,11 @@ import { HttpStatusCode } from '@shared/core-utils' | |||
5 | import { | 5 | import { |
6 | buildAbsoluteFixturePath, | 6 | buildAbsoluteFixturePath, |
7 | cleanupTests, | 7 | cleanupTests, |
8 | flushAndRunServer, | 8 | createSingleServer, |
9 | makeDeleteRequest, | 9 | makeDeleteRequest, |
10 | makeGetRequest, | 10 | makeGetRequest, |
11 | makeUploadRequest, | 11 | makeUploadRequest, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | setAccessTokensToServers | 13 | setAccessTokensToServers |
14 | } from '@shared/extra-utils' | 14 | } from '@shared/extra-utils' |
15 | import { VideoCreateResult } from '@shared/models' | 15 | import { VideoCreateResult } from '@shared/models' |
@@ -17,7 +17,7 @@ import { VideoCreateResult } from '@shared/models' | |||
17 | describe('Test video captions API validator', function () { | 17 | describe('Test video captions API validator', function () { |
18 | const path = '/api/v1/videos/' | 18 | const path = '/api/v1/videos/' |
19 | 19 | ||
20 | let server: ServerInfo | 20 | let server: PeerTubeServer |
21 | let userAccessToken: string | 21 | let userAccessToken: string |
22 | let video: VideoCreateResult | 22 | let video: VideoCreateResult |
23 | 23 | ||
@@ -26,7 +26,7 @@ describe('Test video captions API validator', function () { | |||
26 | before(async function () { | 26 | before(async function () { |
27 | this.timeout(30000) | 27 | this.timeout(30000) |
28 | 28 | ||
29 | server = await flushAndRunServer(1) | 29 | server = await createSingleServer(1) |
30 | 30 | ||
31 | await setAccessTokensToServers([ server ]) | 31 | await setAccessTokensToServers([ server ]) |
32 | 32 | ||