diff options
Diffstat (limited to 'server/tests/api/check-params/upload-quota.ts')
-rw-r--r-- | server/tests/api/check-params/upload-quota.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/check-params/upload-quota.ts b/server/tests/api/check-params/upload-quota.ts index c444663b8..3dc6cf2b4 100644 --- a/server/tests/api/check-params/upload-quota.ts +++ b/server/tests/api/check-params/upload-quota.ts | |||
@@ -15,7 +15,6 @@ import { | |||
15 | setDefaultVideoChannel, | 15 | setDefaultVideoChannel, |
16 | updateUser, | 16 | updateUser, |
17 | uploadVideo, | 17 | uploadVideo, |
18 | userLogin, | ||
19 | waitJobs | 18 | waitJobs |
20 | } from '../../../../shared/extra-utils' | 19 | } from '../../../../shared/extra-utils' |
21 | 20 | ||
@@ -50,7 +49,7 @@ describe('Test upload quota', function () { | |||
50 | 49 | ||
51 | const user = { username: 'registered' + randomInt(1, 1500), password: 'password' } | 50 | const user = { username: 'registered' + randomInt(1, 1500), password: 'password' } |
52 | await registerUser(server.url, user.username, user.password) | 51 | await registerUser(server.url, user.username, user.password) |
53 | const userAccessToken = await userLogin(server, user) | 52 | const userAccessToken = await server.loginCommand.getAccessToken(user) |
54 | 53 | ||
55 | const videoAttributes = { fixture: 'video_short2.webm' } | 54 | const videoAttributes = { fixture: 'video_short2.webm' } |
56 | for (let i = 0; i < 5; i++) { | 55 | for (let i = 0; i < 5; i++) { |
@@ -65,7 +64,7 @@ describe('Test upload quota', function () { | |||
65 | 64 | ||
66 | const user = { username: 'registered' + randomInt(1, 1500), password: 'password' } | 65 | const user = { username: 'registered' + randomInt(1, 1500), password: 'password' } |
67 | await registerUser(server.url, user.username, user.password) | 66 | await registerUser(server.url, user.username, user.password) |
68 | const userAccessToken = await userLogin(server, user) | 67 | const userAccessToken = await server.loginCommand.getAccessToken(user) |
69 | 68 | ||
70 | const videoAttributes = { fixture: 'video_short2.webm' } | 69 | const videoAttributes = { fixture: 'video_short2.webm' } |
71 | for (let i = 0; i < 5; i++) { | 70 | for (let i = 0; i < 5; i++) { |