diff options
Diffstat (limited to 'server/tests/api/users/users.ts')
-rw-r--r-- | server/tests/api/users/users.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index ba4183e08..33bcc8701 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts | |||
@@ -13,7 +13,6 @@ import { | |||
13 | flushAndRunServer, | 13 | flushAndRunServer, |
14 | getAccountRatings, | 14 | getAccountRatings, |
15 | getBlacklistedVideosList, | 15 | getBlacklistedVideosList, |
16 | getCustomConfig, | ||
17 | getMyUserInformation, | 16 | getMyUserInformation, |
18 | getMyUserVideoQuotaUsed, | 17 | getMyUserVideoQuotaUsed, |
19 | getMyUserVideoRating, | 18 | getMyUserVideoRating, |
@@ -38,7 +37,6 @@ import { | |||
38 | setTokenField, | 37 | setTokenField, |
39 | testImage, | 38 | testImage, |
40 | unblockUser, | 39 | unblockUser, |
41 | updateCustomSubConfig, | ||
42 | updateMyAvatar, | 40 | updateMyAvatar, |
43 | updateMyUser, | 41 | updateMyUser, |
44 | updateUser, | 42 | updateUser, |
@@ -46,7 +44,7 @@ import { | |||
46 | userLogin, | 44 | userLogin, |
47 | waitJobs | 45 | waitJobs |
48 | } from '@shared/extra-utils' | 46 | } from '@shared/extra-utils' |
49 | import { AbuseState, CustomConfig, MyUser, OAuth2ErrorCode, User, UserAdminFlag, UserRole, Video, VideoPlaylistType } from '@shared/models' | 47 | import { AbuseState, MyUser, OAuth2ErrorCode, User, UserAdminFlag, UserRole, Video, VideoPlaylistType } from '@shared/models' |
50 | 48 | ||
51 | const expect = chai.expect | 49 | const expect = chai.expect |
52 | 50 | ||
@@ -418,12 +416,11 @@ describe('Test users', function () { | |||
418 | this.timeout(60000) | 416 | this.timeout(60000) |
419 | 417 | ||
420 | { | 418 | { |
421 | const res = await getCustomConfig(server.url, server.accessToken) | 419 | const config = await server.configCommand.getCustomConfig() |
422 | const config = res.body as CustomConfig | ||
423 | config.transcoding.webtorrent.enabled = false | 420 | config.transcoding.webtorrent.enabled = false |
424 | config.transcoding.hls.enabled = true | 421 | config.transcoding.hls.enabled = true |
425 | config.transcoding.enabled = true | 422 | config.transcoding.enabled = true |
426 | await updateCustomSubConfig(server.url, server.accessToken, config) | 423 | await server.configCommand.updateCustomSubConfig({ newConfig: config }) |
427 | } | 424 | } |
428 | 425 | ||
429 | { | 426 | { |