From 2732eeff9e6994582293b5aaa0cb158b7e272e9e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Dec 2022 11:14:47 +0100 Subject: Fix CI using 127.0.0.1 for tests --- server/tests/shared/notifications.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests/shared') diff --git a/server/tests/shared/notifications.ts b/server/tests/shared/notifications.ts index ee15e2b09..e600bd6b2 100644 --- a/server/tests/shared/notifications.ts +++ b/server/tests/shared/notifications.ts @@ -371,7 +371,7 @@ async function checkNewCommentOnMyVideo (options: CheckerBaseParams & { } } - const commentUrl = `http://localhost:${server.port}/w/${shortUUID};threadId=${threadId}` + const commentUrl = `${server.url}/w/${shortUUID};threadId=${threadId}` function emailNotificationFinder (email: object) { return email['text'].indexOf(commentUrl) !== -1 @@ -674,7 +674,7 @@ async function prepareNotificationsTest (serversCount = 3, overrideConfigArg: an const overrideConfig = { smtp: { - hostname: 'localhost', + hostname: '127.0.0.1', port }, signup: { -- cgit v1.2.3