aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/notifications/moderation-notifications.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/notifications/moderation-notifications.ts')
-rw-r--r--server/tests/api/notifications/moderation-notifications.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/notifications/moderation-notifications.ts b/server/tests/api/notifications/moderation-notifications.ts
index 5a632fb22..b127a7a31 100644
--- a/server/tests/api/notifications/moderation-notifications.ts
+++ b/server/tests/api/notifications/moderation-notifications.ts
@@ -373,7 +373,7 @@ describe('Test moderation notifications', function () {
373 followings: { 373 followings: {
374 instance: { 374 instance: {
375 autoFollowIndex: { 375 autoFollowIndex: {
376 indexUrl: `http://localhost:${port}/api/v1/instances/hosts`, 376 indexUrl: `http://127.0.0.1:${port}/api/v1/instances/hosts`,
377 enabled: true 377 enabled: true
378 } 378 }
379 } 379 }
@@ -388,10 +388,10 @@ describe('Test moderation notifications', function () {
388 388
389 await waitJobs(servers) 389 await waitJobs(servers)
390 390
391 await checkNewInstanceFollower({ ...baseParams, followerHost: 'localhost:' + servers[2].port, checkType: 'presence' }) 391 await checkNewInstanceFollower({ ...baseParams, followerHost: servers[2].host, checkType: 'presence' })
392 392
393 const userOverride = { socketNotifications: userNotifications, token: userToken1, check: { web: true, mail: false } } 393 const userOverride = { socketNotifications: userNotifications, token: userToken1, check: { web: true, mail: false } }
394 await checkNewInstanceFollower({ ...baseParams, ...userOverride, followerHost: 'localhost:' + servers[2].port, checkType: 'absence' }) 394 await checkNewInstanceFollower({ ...baseParams, ...userOverride, followerHost: servers[2].host, checkType: 'absence' })
395 }) 395 })
396 396
397 it('Should send a notification on auto follow back', async function () { 397 it('Should send a notification on auto follow back', async function () {
@@ -495,8 +495,8 @@ describe('Test moderation notifications', function () {
495 autoBlacklistTestsCustomConfig.transcoding.enabled = true 495 autoBlacklistTestsCustomConfig.transcoding.enabled = true
496 await servers[0].config.updateCustomConfig({ newCustomConfig: autoBlacklistTestsCustomConfig }) 496 await servers[0].config.updateCustomConfig({ newCustomConfig: autoBlacklistTestsCustomConfig })
497 497
498 await servers[0].subscriptions.add({ targetUri: 'user_1_channel@localhost:' + servers[0].port }) 498 await servers[0].subscriptions.add({ targetUri: 'user_1_channel@' + servers[0].host })
499 await servers[1].subscriptions.add({ targetUri: 'user_1_channel@localhost:' + servers[0].port }) 499 await servers[1].subscriptions.add({ targetUri: 'user_1_channel@' + servers[0].host })
500 }) 500 })
501 501
502 it('Should send notification to moderators on new video with auto-blacklist', async function () { 502 it('Should send notification to moderators on new video with auto-blacklist', async function () {
@@ -615,8 +615,8 @@ describe('Test moderation notifications', function () {
615 after(async () => { 615 after(async () => {
616 await servers[0].config.updateCustomConfig({ newCustomConfig: currentCustomConfig }) 616 await servers[0].config.updateCustomConfig({ newCustomConfig: currentCustomConfig })
617 617
618 await servers[0].subscriptions.remove({ uri: 'user_1_channel@localhost:' + servers[0].port }) 618 await servers[0].subscriptions.remove({ uri: 'user_1_channel@' + servers[0].host })
619 await servers[1].subscriptions.remove({ uri: 'user_1_channel@localhost:' + servers[0].port }) 619 await servers[1].subscriptions.remove({ uri: 'user_1_channel@' + servers[0].host })
620 }) 620 })
621 }) 621 })
622 622