diff options
Diffstat (limited to 'server/tests/feeds/feeds.ts')
-rw-r--r-- | server/tests/feeds/feeds.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts index 610849105..9c78ae0e8 100644 --- a/server/tests/feeds/feeds.ts +++ b/server/tests/feeds/feeds.ts | |||
@@ -17,7 +17,6 @@ import { | |||
17 | setAccessTokensToServers, | 17 | setAccessTokensToServers, |
18 | uploadVideo, | 18 | uploadVideo, |
19 | uploadVideoAndGetId, | 19 | uploadVideoAndGetId, |
20 | userLogin, | ||
21 | waitJobs | 20 | waitJobs |
22 | } from '@shared/extra-utils' | 21 | } from '@shared/extra-utils' |
23 | import { User, VideoPrivacy } from '@shared/models' | 22 | import { User, VideoPrivacy } from '@shared/models' |
@@ -64,7 +63,7 @@ describe('Test syndication feeds', () => { | |||
64 | { | 63 | { |
65 | const attr = { username: 'john', password: 'password' } | 64 | const attr = { username: 'john', password: 'password' } |
66 | await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, username: attr.username, password: attr.password }) | 65 | await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, username: attr.username, password: attr.password }) |
67 | userAccessToken = await userLogin(servers[0], attr) | 66 | userAccessToken = await servers[0].loginCommand.getAccessToken(attr) |
68 | 67 | ||
69 | const res = await getMyUserInformation(servers[0].url, userAccessToken) | 68 | const res = await getMyUserInformation(servers[0].url, userAccessToken) |
70 | const user: User = res.body | 69 | const user: User = res.body |
@@ -301,7 +300,7 @@ describe('Test syndication feeds', () => { | |||
301 | it('Should list no videos for a user with no videos and no subscriptions', async function () { | 300 | it('Should list no videos for a user with no videos and no subscriptions', async function () { |
302 | const attr = { username: 'feeduser', password: 'password' } | 301 | const attr = { username: 'feeduser', password: 'password' } |
303 | await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, username: attr.username, password: attr.password }) | 302 | await createUser({ url: servers[0].url, accessToken: servers[0].accessToken, username: attr.username, password: attr.password }) |
304 | const feeduserAccessToken = await userLogin(servers[0], attr) | 303 | const feeduserAccessToken = await servers[0].loginCommand.getAccessToken(attr) |
305 | 304 | ||
306 | { | 305 | { |
307 | const res = await getMyUserInformation(servers[0].url, feeduserAccessToken) | 306 | const res = await getMyUserInformation(servers[0].url, feeduserAccessToken) |