diff options
Diffstat (limited to 'server/tests/api/notifications/user-notifications.ts')
-rw-r--r-- | server/tests/api/notifications/user-notifications.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index e53ab2aa5..468efdf35 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts | |||
@@ -61,7 +61,7 @@ describe('Test user notifications', function () { | |||
61 | 61 | ||
62 | await uploadRandomVideoOnServers(servers, 1) | 62 | await uploadRandomVideoOnServers(servers, 1) |
63 | 63 | ||
64 | const notification = await servers[0].notifications.getLastest({ token: userAccessToken }) | 64 | const notification = await servers[0].notifications.getLatest({ token: userAccessToken }) |
65 | expect(notification).to.be.undefined | 65 | expect(notification).to.be.undefined |
66 | 66 | ||
67 | expect(emails).to.have.lengthOf(0) | 67 | expect(emails).to.have.lengthOf(0) |
@@ -237,12 +237,12 @@ describe('Test user notifications', function () { | |||
237 | }) | 237 | }) |
238 | 238 | ||
239 | it('Should not send a notification if the wait transcoding is false', async function () { | 239 | it('Should not send a notification if the wait transcoding is false', async function () { |
240 | this.timeout(50000) | 240 | this.timeout(100_000) |
241 | 241 | ||
242 | await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: false }) | 242 | await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: false }) |
243 | await waitJobs(servers) | 243 | await waitJobs(servers) |
244 | 244 | ||
245 | const notification = await servers[0].notifications.getLastest({ token: userAccessToken }) | 245 | const notification = await servers[0].notifications.getLatest({ token: userAccessToken }) |
246 | if (notification) { | 246 | if (notification) { |
247 | expect(notification.type).to.not.equal(UserNotificationType.MY_VIDEO_PUBLISHED) | 247 | expect(notification.type).to.not.equal(UserNotificationType.MY_VIDEO_PUBLISHED) |
248 | } | 248 | } |