diff options
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index 41064d2ff..5ff51d1ff 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -39,10 +39,7 @@ describe('Test videos API validator', function () { | |||
39 | 39 | ||
40 | await setAccessTokensToServers([ server ]) | 40 | await setAccessTokensToServers([ server ]) |
41 | 41 | ||
42 | const username = 'user1' | 42 | userAccessToken = await server.users.generateUserAndToken('user1') |
43 | const password = 'my super password' | ||
44 | await server.users.create({ username: username, password: password }) | ||
45 | userAccessToken = await server.login.getAccessToken({ username, password }) | ||
46 | 43 | ||
47 | { | 44 | { |
48 | const body = await server.users.getMyInfo() | 45 | const body = await server.users.getMyInfo() |