X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fnotifications%2Fuser-notifications.ts;h=ceadc21ffc61afee33724eb4751c66d7d1502a71;hb=b7faa8372ed598118305b760f7c1ddf537ca7f0d;hp=a11289236934ac0512e7290e2c0a161f89bb719c;hpb=e722fb5923ddf11d72e48cec9788abc64327c22f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index a11289236..ceadc21ff 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import 'mocha' -import * as chai from 'chai' +import { expect } from 'chai' import { CheckerBaseParams, checkMyVideoImportIsFinished, @@ -19,8 +18,6 @@ import { buildUUID } from '@shared/extra-utils' import { UserNotification, UserNotificationType, VideoPrivacy, VideoStudioTask } from '@shared/models' import { cleanupTests, findExternalSavedVideo, PeerTubeServer, stopFfmpeg, waitJobs } from '@shared/server-commands' -const expect = chai.expect - describe('Test user notifications', function () { let servers: PeerTubeServer[] = [] let userAccessToken: string @@ -161,7 +158,7 @@ describe('Test user notifications', function () { }) it('Should send a new video notification when a remote video becomes public', async function () { - this.timeout(50000) + this.timeout(120000) const data = { privacy: VideoPrivacy.PRIVATE } const { name, uuid, shortUUID } = await uploadRandomVideoOnServers(servers, 2, data) @@ -305,7 +302,7 @@ describe('Test user notifications', function () { }) it('Should not send a notification before the video is published', async function () { - this.timeout(50000) + this.timeout(150000) const updateAt = new Date(new Date().getTime() + 1000000)