X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-privacy.ts;h=264a05d3fa7ad2adcb278a9bea92baa39d94d51e;hb=b1dbb9fefc870a90b25f5c0153589f45c9e75e3e;hp=1073aee8c48a538527665beecc7448c09c3dcae9;hpb=371d4c60639e405ce8a503bea1395e9102fbba84;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-privacy.ts b/server/tests/api/videos/video-privacy.ts index 1073aee8c..264a05d3f 100644 --- a/server/tests/api/videos/video-privacy.ts +++ b/server/tests/api/videos/video-privacy.ts @@ -1,13 +1,10 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' -import * as chai from 'chai' +import { expect } from 'chai' import { wait } from '@shared/core-utils' import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' import { cleanupTests, createSingleServer, doubleFollow, PeerTubeServer, setAccessTokensToServers, waitJobs } from '@shared/server-commands' -const expect = chai.expect - describe('Test video privacy', function () { const servers: PeerTubeServer[] = [] let anotherUserToken: string @@ -48,7 +45,7 @@ describe('Test video privacy', function () { describe('Private and internal videos', function () { it('Should upload a private and internal videos on server 1', async function () { - this.timeout(10000) + this.timeout(50000) for (const privacy of [ VideoPrivacy.PRIVATE, VideoPrivacy.INTERNAL ]) { const attributes = { privacy } @@ -131,7 +128,7 @@ describe('Test video privacy', function () { describe('Unlisted videos', function () { it('Should upload an unlisted video on server 2', async function () { - this.timeout(60000) + this.timeout(120000) const attributes = { name: 'unlisted video',