From 41130b4ce3b925170b03d9d94c46691be66ecf51 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Jul 2020 13:46:52 +0200 Subject: Fix tests --- server/tests/api/notifications/moderation-notifications.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts index 721a445ab..e7aa5d987 100644 --- a/server/tests/api/notifications/moderation-notifications.ts +++ b/server/tests/api/notifications/moderation-notifications.ts @@ -267,7 +267,7 @@ describe('Test moderation notifications', function () { await addAbuseMessage(servers[0].url, servers[0].accessToken, abuseId, message) await waitJobs(servers) - await checkNewAbuseMessage(baseParamsAdmin, abuseId, message, 'admin1@example.com', 'absence') + await checkNewAbuseMessage(baseParamsAdmin, abuseId, message, 'admin' + servers[0].internalServerNumber + '@example.com', 'absence') }) it('Should send a notification to moderators', async function () { @@ -277,7 +277,7 @@ describe('Test moderation notifications', function () { await addAbuseMessage(servers[0].url, userAccessToken, abuseId2, message) await waitJobs(servers) - await checkNewAbuseMessage(baseParamsAdmin, abuseId2, message, 'admin1@example.com', 'presence') + await checkNewAbuseMessage(baseParamsAdmin, abuseId2, message, 'admin' + servers[0].internalServerNumber + '@example.com', 'presence') }) it('Should not send a notification to reporter if sent by the reporter', async function () { -- cgit v1.2.3