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/config.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/config.ts')
-rw-r--r-- | server/tests/api/check-params/config.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 6fd26864e..1756d58ee 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -5,18 +5,18 @@ import { omit } from 'lodash' | |||
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/core-utils' |
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | flushAndRunServer, | 8 | createSingleServer, |
9 | makeDeleteRequest, | 9 | makeDeleteRequest, |
10 | makeGetRequest, | 10 | makeGetRequest, |
11 | makePutBodyRequest, | 11 | makePutBodyRequest, |
12 | ServerInfo, | 12 | PeerTubeServer, |
13 | setAccessTokensToServers | 13 | setAccessTokensToServers |
14 | } from '@shared/extra-utils' | 14 | } from '@shared/extra-utils' |
15 | import { CustomConfig } from '@shared/models' | 15 | import { CustomConfig } from '@shared/models' |
16 | 16 | ||
17 | describe('Test config API validators', function () { | 17 | describe('Test config API validators', function () { |
18 | const path = '/api/v1/config/custom' | 18 | const path = '/api/v1/config/custom' |
19 | let server: ServerInfo | 19 | let server: PeerTubeServer |
20 | let userAccessToken: string | 20 | let userAccessToken: string |
21 | const updateParams: CustomConfig = { | 21 | const updateParams: CustomConfig = { |
22 | instance: { | 22 | instance: { |
@@ -197,7 +197,7 @@ describe('Test config API validators', function () { | |||
197 | before(async function () { | 197 | before(async function () { |
198 | this.timeout(30000) | 198 | this.timeout(30000) |
199 | 199 | ||
200 | server = await flushAndRunServer(1) | 200 | server = await createSingleServer(1) |
201 | 201 | ||
202 | await setAccessTokensToServers([ server ]) | 202 | await setAccessTokensToServers([ server ]) |
203 | 203 | ||