diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 11:05:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 41d1d075011174e73dccb74006181a92a618d7b4 (patch) | |
tree | 4dc1af0e266977f062cf9716837d04de1cdd628d /server/tests/api/users/users-multiple-servers.ts | |
parent | 6c5065a011b099618681a37bd77eaa7bd3db752e (diff) | |
download | PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.gz PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.zst PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.zip |
Introduce login command
Diffstat (limited to 'server/tests/api/users/users-multiple-servers.ts')
-rw-r--r-- | server/tests/api/users/users-multiple-servers.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/users/users-multiple-servers.ts b/server/tests/api/users/users-multiple-servers.ts index 7b650cb8f..99fa08fe2 100644 --- a/server/tests/api/users/users-multiple-servers.ts +++ b/server/tests/api/users/users-multiple-servers.ts | |||
@@ -19,7 +19,6 @@ import { | |||
19 | updateMyAvatar, | 19 | updateMyAvatar, |
20 | updateMyUser, | 20 | updateMyUser, |
21 | uploadVideo, | 21 | uploadVideo, |
22 | userLogin, | ||
23 | waitJobs | 22 | waitJobs |
24 | } from '@shared/extra-utils' | 23 | } from '@shared/extra-utils' |
25 | import { User } from '@shared/models' | 24 | import { User } from '@shared/models' |
@@ -64,7 +63,7 @@ describe('Test users with multiple servers', function () { | |||
64 | password: user.password | 63 | password: user.password |
65 | }) | 64 | }) |
66 | userId = res.body.user.id | 65 | userId = res.body.user.id |
67 | userAccessToken = await userLogin(servers[0], user) | 66 | userAccessToken = await servers[0].loginCommand.getAccessToken(user) |
68 | } | 67 | } |
69 | 68 | ||
70 | { | 69 | { |