aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/upload-quota.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-13 11:05:15 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit41d1d075011174e73dccb74006181a92a618d7b4 (patch)
tree4dc1af0e266977f062cf9716837d04de1cdd628d /server/tests/api/check-params/upload-quota.ts
parent6c5065a011b099618681a37bd77eaa7bd3db752e (diff)
downloadPeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.gz
PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.zst
PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.zip
Introduce login command
Diffstat (limited to 'server/tests/api/check-params/upload-quota.ts')
-rw-r--r--server/tests/api/check-params/upload-quota.ts5
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++) {