diff options
Diffstat (limited to 'server/tests/api/notifications/user-notifications.ts')
-rw-r--r-- | server/tests/api/notifications/user-notifications.ts | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index 468efdf35..f9f3e0e0e 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts | |||
@@ -2,23 +2,21 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { buildUUID } from '@server/helpers/uuid' | ||
6 | import { | 5 | import { |
7 | CheckerBaseParams, | 6 | CheckerBaseParams, |
8 | checkMyVideoImportIsFinished, | 7 | checkMyVideoImportIsFinished, |
9 | checkNewActorFollow, | 8 | checkNewActorFollow, |
10 | checkNewVideoFromSubscription, | 9 | checkNewVideoFromSubscription, |
11 | checkVideoIsPublished, | 10 | checkVideoIsPublished, |
12 | cleanupTests, | ||
13 | FIXTURE_URLS, | 11 | FIXTURE_URLS, |
14 | MockSmtpServer, | 12 | MockSmtpServer, |
15 | PeerTubeServer, | ||
16 | prepareNotificationsTest, | 13 | prepareNotificationsTest, |
17 | uploadRandomVideoOnServers, | 14 | uploadRandomVideoOnServers |
18 | wait, | 15 | } from '@server/tests/shared' |
19 | waitJobs | 16 | import { wait } from '@shared/core-utils' |
20 | } from '@shared/extra-utils' | 17 | import { buildUUID } from '@shared/extra-utils' |
21 | import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models' | 18 | import { UserNotification, UserNotificationType, VideoPrivacy } from '@shared/models' |
19 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' | ||
22 | 20 | ||
23 | const expect = chai.expect | 21 | const expect = chai.expect |
24 | 22 | ||
@@ -128,7 +126,7 @@ describe('Test user notifications', function () { | |||
128 | }) | 126 | }) |
129 | 127 | ||
130 | it('Should not send a notification before the video is published', async function () { | 128 | it('Should not send a notification before the video is published', async function () { |
131 | this.timeout(50000) | 129 | this.timeout(150000) |
132 | 130 | ||
133 | const updateAt = new Date(new Date().getTime() + 1000000) | 131 | const updateAt = new Date(new Date().getTime() + 1000000) |
134 | 132 | ||
@@ -267,7 +265,7 @@ describe('Test user notifications', function () { | |||
267 | }) | 265 | }) |
268 | 266 | ||
269 | it('Should send a notification when an imported video is transcoded', async function () { | 267 | it('Should send a notification when an imported video is transcoded', async function () { |
270 | this.timeout(50000) | 268 | this.timeout(120000) |
271 | 269 | ||
272 | const name = 'video import ' + buildUUID() | 270 | const name = 'video import ' + buildUUID() |
273 | 271 | ||