diff options
Diffstat (limited to 'server/tests/api/check-params/users.ts')
-rw-r--r-- | server/tests/api/check-params/users.ts | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index bce3f0774..c2c98f429 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -9,15 +9,14 @@ import { | |||
9 | checkBadSortPagination, | 9 | checkBadSortPagination, |
10 | checkBadStartPagination, | 10 | checkBadStartPagination, |
11 | cleanupTests, | 11 | cleanupTests, |
12 | flushAndRunServer, | 12 | createSingleServer, |
13 | killallServers, | 13 | killallServers, |
14 | makeGetRequest, | 14 | makeGetRequest, |
15 | makePostBodyRequest, | 15 | makePostBodyRequest, |
16 | makePutBodyRequest, | 16 | makePutBodyRequest, |
17 | makeUploadRequest, | 17 | makeUploadRequest, |
18 | MockSmtpServer, | 18 | MockSmtpServer, |
19 | reRunServer, | 19 | PeerTubeServer, |
20 | ServerInfo, | ||
21 | setAccessTokensToServers, | 20 | setAccessTokensToServers, |
22 | UsersCommand | 21 | UsersCommand |
23 | } from '@shared/extra-utils' | 22 | } from '@shared/extra-utils' |
@@ -29,8 +28,8 @@ describe('Test users API validators', function () { | |||
29 | let rootId: number | 28 | let rootId: number |
30 | let moderatorId: number | 29 | let moderatorId: number |
31 | let video: VideoCreateResult | 30 | let video: VideoCreateResult |
32 | let server: ServerInfo | 31 | let server: PeerTubeServer |
33 | let serverWithRegistrationDisabled: ServerInfo | 32 | let serverWithRegistrationDisabled: PeerTubeServer |
34 | let userToken = '' | 33 | let userToken = '' |
35 | let moderatorToken = '' | 34 | let moderatorToken = '' |
36 | let emailPort: number | 35 | let emailPort: number |
@@ -48,8 +47,8 @@ describe('Test users API validators', function () { | |||
48 | 47 | ||
49 | { | 48 | { |
50 | const res = await Promise.all([ | 49 | const res = await Promise.all([ |
51 | flushAndRunServer(1, overrideConfig), | 50 | createSingleServer(1, overrideConfig), |
52 | flushAndRunServer(2) | 51 | createSingleServer(2) |
53 | ]) | 52 | ]) |
54 | 53 | ||
55 | server = res[0] | 54 | server = res[0] |
@@ -196,7 +195,7 @@ describe('Test users API validators', function () { | |||
196 | port: emailPort | 195 | port: emailPort |
197 | } | 196 | } |
198 | } | 197 | } |
199 | await reRunServer(server, config) | 198 | await server.run(config) |
200 | 199 | ||
201 | const fields = { | 200 | const fields = { |
202 | ...baseCorrectParams, | 201 | ...baseCorrectParams, |