From d1c64fd970fc236b9ba01ac944659051e9e04a99 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 May 2023 14:59:15 +0200 Subject: Fix missing wait jobs --- server/tests/api/notifications/comments-notifications.ts | 2 +- server/tests/api/notifications/moderation-notifications.ts | 4 ++-- server/tests/api/notifications/user-notifications.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'server/tests/api/notifications') diff --git a/server/tests/api/notifications/comments-notifications.ts b/server/tests/api/notifications/comments-notifications.ts index 65007193a..0a4bfc5e4 100644 --- a/server/tests/api/notifications/comments-notifications.ts +++ b/server/tests/api/notifications/comments-notifications.ts @@ -170,7 +170,7 @@ describe('Test comments notifications', function () { let baseParams: CheckerBaseParams const byAccountDisplayName = 'super root name' - before(async () => { + before(async function () { baseParams = { server: servers[0], emails, diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index d80de821e..e7a5c47e9 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts @@ -331,7 +331,7 @@ describe('Test moderation notifications', function () { let config: any let baseParams: CheckerBaseParams - before(async () => { + before(async function () { baseParams = { server: servers[0], emails, @@ -427,7 +427,7 @@ describe('Test moderation notifications', function () { let videoName: string let currentCustomConfig: CustomConfig - before(async () => { + before(async function () { adminBaseParamsServer1 = { server: servers[0], diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index 7a8a234c2..55da10265 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts @@ -484,7 +484,7 @@ describe('Test user notifications', function () { const myChannelName = 'super channel name' const myUserName = 'super user name' - before(async () => { + before(async function () { baseParams = { server: servers[0], emails, -- cgit v1.2.3