X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fupload-quota.ts;h=06698c056c241a887d99bef86ca0b7ee95bc6717;hb=cffef25313bdf7a6c435f56ac6715fdd91acf7b3;hp=f64eafc1839bdddb5045e233666969d5d9f6ae04;hpb=2a491182e483b97afb1b65c908b23cb48d591807;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/upload-quota.ts b/server/tests/api/check-params/upload-quota.ts index f64eafc18..06698c056 100644 --- a/server/tests/api/check-params/upload-quota.ts +++ b/server/tests/api/check-params/upload-quota.ts @@ -1,6 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' import { expect } from 'chai' import { FIXTURE_URLS } from '@server/tests/shared' import { randomInt } from '@shared/core-utils' @@ -40,10 +39,10 @@ describe('Test upload quota', function () { describe('When having a video quota', function () { it('Should fail with a registered user having too many videos with legacy upload', async function () { - this.timeout(30000) + this.timeout(120000) const user = { username: 'registered' + randomInt(1, 1500), password: 'password' } - await server.users.register(user) + await server.registrations.register(user) const userToken = await server.login.getAccessToken(user) const attributes = { fixture: 'video_short2.webm' } @@ -55,10 +54,10 @@ describe('Test upload quota', function () { }) it('Should fail with a registered user having too many videos with resumable upload', async function () { - this.timeout(30000) + this.timeout(120000) const user = { username: 'registered' + randomInt(1, 1500), password: 'password' } - await server.users.register(user) + await server.registrations.register(user) const userToken = await server.login.getAccessToken(user) const attributes = { fixture: 'video_short2.webm' }