// ---------------------------------------------------------------
before(async function () {
- this.timeout(150_000)
+ this.timeout(300_000)
servers = await createMultipleServers(2)
await setAccessTokensToServers(servers)
await uploadRandomVideoOnServers(servers, 1)
- const notification = await servers[0].notifications.getLastest({ token: userAccessToken })
+ const notification = await servers[0].notifications.getLatest({ token: userAccessToken })
expect(notification).to.be.undefined
expect(emails).to.have.lengthOf(0)
})
it('Should not send a notification if the wait transcoding is false', async function () {
- this.timeout(50000)
+ this.timeout(100_000)
await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: false })
await waitJobs(servers)
- const notification = await servers[0].notifications.getLastest({ token: userAccessToken })
+ const notification = await servers[0].notifications.getLatest({ token: userAccessToken })
if (notification) {
expect(notification.type).to.not.equal(UserNotificationType.MY_VIDEO_PUBLISHED)
}
const check = options.check || { web: true, mail: true }
if (check.web) {
- const notification = await server.notifications.getLastest({ token: token })
+ const notification = await server.notifications.getLatest({ token: token })
if (notification || checkType !== 'absence') {
notificationChecker(notification, checkType)