diff options
Diffstat (limited to 'server/tests/api/users/user-subscriptions.ts')
-rw-r--r-- | server/tests/api/users/user-subscriptions.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/users/user-subscriptions.ts b/server/tests/api/users/user-subscriptions.ts index 1d0fc35f1..c09a85a32 100644 --- a/server/tests/api/users/user-subscriptions.ts +++ b/server/tests/api/users/user-subscriptions.ts | |||
@@ -4,7 +4,6 @@ import 'mocha' | |||
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | createUser, | ||
8 | doubleFollow, | 7 | doubleFollow, |
9 | flushAndRunMultipleServers, | 8 | flushAndRunMultipleServers, |
10 | getVideosList, | 9 | getVideosList, |
@@ -39,7 +38,7 @@ describe('Test users subscriptions', function () { | |||
39 | { | 38 | { |
40 | for (const server of servers) { | 39 | for (const server of servers) { |
41 | const user = { username: 'user' + server.serverNumber, password: 'password' } | 40 | const user = { username: 'user' + server.serverNumber, password: 'password' } |
42 | await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) | 41 | await server.usersCommand.create({ username: user.username, password: user.password }) |
43 | 42 | ||
44 | const accessToken = await server.loginCommand.getAccessToken(user) | 43 | const accessToken = await server.loginCommand.getAccessToken(user) |
45 | users.push({ accessToken }) | 44 | users.push({ accessToken }) |