diff options
Diffstat (limited to 'server/tests/api/videos/video-change-ownership.ts')
-rw-r--r-- | server/tests/api/videos/video-change-ownership.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/tests/api/videos/video-change-ownership.ts b/server/tests/api/videos/video-change-ownership.ts index 1b81fe047..17c738e6f 100644 --- a/server/tests/api/videos/video-change-ownership.ts +++ b/server/tests/api/videos/video-change-ownership.ts | |||
@@ -16,8 +16,7 @@ import { | |||
16 | ServerInfo, | 16 | ServerInfo, |
17 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
18 | setDefaultVideoChannel, | 18 | setDefaultVideoChannel, |
19 | uploadVideo, | 19 | uploadVideo |
20 | userLogin | ||
21 | } from '../../../../shared/extra-utils' | 20 | } from '../../../../shared/extra-utils' |
22 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' | 21 | import { waitJobs } from '../../../../shared/extra-utils/server/jobs' |
23 | import { User } from '../../../../shared/models/users' | 22 | import { User } from '../../../../shared/models/users' |
@@ -82,8 +81,8 @@ describe('Test video change ownership - nominal', function () { | |||
82 | videoQuota: videoQuota | 81 | videoQuota: videoQuota |
83 | }) | 82 | }) |
84 | 83 | ||
85 | firstUserToken = await userLogin(servers[0], firstUser) | 84 | firstUserToken = await servers[0].loginCommand.getAccessToken(firstUser) |
86 | secondUserToken = await userLogin(servers[0], secondUser) | 85 | secondUserToken = await servers[0].loginCommand.getAccessToken(secondUser) |
87 | 86 | ||
88 | { | 87 | { |
89 | const res = await getMyUserInformation(servers[0].url, firstUserToken) | 88 | const res = await getMyUserInformation(servers[0].url, firstUserToken) |
@@ -323,8 +322,8 @@ describe('Test video change ownership - quota too small', function () { | |||
323 | videoQuota: limitedVideoQuota | 322 | videoQuota: limitedVideoQuota |
324 | }) | 323 | }) |
325 | 324 | ||
326 | firstUserToken = await userLogin(server, firstUser) | 325 | firstUserToken = await server.loginCommand.getAccessToken(firstUser) |
327 | secondUserToken = await userLogin(server, secondUser) | 326 | secondUserToken = await server.loginCommand.getAccessToken(secondUser) |
328 | 327 | ||
329 | // Upload some videos on the server | 328 | // Upload some videos on the server |
330 | const video1Attributes = { | 329 | const video1Attributes = { |