aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/config.ts')
-rw-r--r--server/tests/api/check-params/config.ts8
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'
5import { HttpStatusCode } from '@shared/core-utils' 5import { HttpStatusCode } from '@shared/core-utils'
6import { 6import {
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'
15import { CustomConfig } from '@shared/models' 15import { CustomConfig } from '@shared/models'
16 16
17describe('Test config API validators', function () { 17describe('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