This commit is contained in:
Chocobozzz 2021-11-19 08:25:07 +01:00
parent 4842e518be
commit 5d3c5f2797
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ describe('Test videos files', function () {
// ---------------------------------------------------------------
before(async function () {
this.timeout(150_000)
this.timeout(300_000)
servers = await createMultipleServers(2)
await setAccessTokensToServers(servers)

View File

@ -61,7 +61,7 @@ describe('Test user notifications', function () {
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)
@ -237,12 +237,12 @@ describe('Test user notifications', function () {
})
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)
}

View File

@ -71,7 +71,7 @@ export class NotificationsCommand extends AbstractCommand {
})
}
async getLastest (options: OverrideCommandOptions = {}) {
async getLatest (options: OverrideCommandOptions = {}) {
const { total, data } = await this.list({
...options,
start: 0,

View File

@ -727,7 +727,7 @@ async function checkNotification (options: CheckerBaseParams & {
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)