aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/notifications/user-notifications.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-12-09 11:14:47 +0100
committerChocobozzz <me@florianbigard.com>2022-12-12 13:36:23 +0100
commit2732eeff9e6994582293b5aaa0cb158b7e272e9e (patch)
tree417d30cf470cd1db84e06c5dbd1b5429d4b99bc1 /server/tests/api/notifications/user-notifications.ts
parentc7c5f8d0f17b0ab598fbe237f11639c6de28110c (diff)
downloadPeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.gz
PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.tar.zst
PeerTube-2732eeff9e6994582293b5aaa0cb158b7e272e9e.zip
Fix CI using 127.0.0.1 for tests
Diffstat (limited to 'server/tests/api/notifications/user-notifications.ts')
-rw-r--r--server/tests/api/notifications/user-notifications.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts
index ceadc21ff..c6087b1eb 100644
--- a/server/tests/api/notifications/user-notifications.ts
+++ b/server/tests/api/notifications/user-notifications.ts
@@ -69,7 +69,7 @@ describe('Test user notifications', function () {
69 it('Should send a new video notification if the user follows the local video publisher', async function () { 69 it('Should send a new video notification if the user follows the local video publisher', async function () {
70 this.timeout(15000) 70 this.timeout(15000)
71 71
72 await servers[0].subscriptions.add({ token: userAccessToken, targetUri: 'root_channel@localhost:' + servers[0].port }) 72 await servers[0].subscriptions.add({ token: userAccessToken, targetUri: 'root_channel@' + servers[0].host })
73 await waitJobs(servers) 73 await waitJobs(servers)
74 74
75 const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 1) 75 const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 1)
@@ -79,7 +79,7 @@ describe('Test user notifications', function () {
79 it('Should send a new video notification from a remote account', async function () { 79 it('Should send a new video notification from a remote account', async function () {
80 this.timeout(150000) // Server 2 has transcoding enabled 80 this.timeout(150000) // Server 2 has transcoding enabled
81 81
82 await servers[0].subscriptions.add({ token: userAccessToken, targetUri: 'root_channel@localhost:' + servers[1].port }) 82 await servers[0].subscriptions.add({ token: userAccessToken, targetUri: 'root_channel@' + servers[1].host })
83 await waitJobs(servers) 83 await waitJobs(servers)
84 84
85 const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 2) 85 const { name, shortUUID } = await uploadRandomVideoOnServers(servers, 2)
@@ -509,7 +509,7 @@ describe('Test user notifications', function () {
509 it('Should notify when a local channel is following one of our channel', async function () { 509 it('Should notify when a local channel is following one of our channel', async function () {
510 this.timeout(50000) 510 this.timeout(50000)
511 511
512 await servers[0].subscriptions.add({ targetUri: 'user_1_channel@localhost:' + servers[0].port }) 512 await servers[0].subscriptions.add({ targetUri: 'user_1_channel@' + servers[0].host })
513 await waitJobs(servers) 513 await waitJobs(servers)
514 514
515 await checkNewActorFollow({ 515 await checkNewActorFollow({
@@ -521,13 +521,13 @@ describe('Test user notifications', function () {
521 checkType: 'presence' 521 checkType: 'presence'
522 }) 522 })
523 523
524 await servers[0].subscriptions.remove({ uri: 'user_1_channel@localhost:' + servers[0].port }) 524 await servers[0].subscriptions.remove({ uri: 'user_1_channel@' + servers[0].host })
525 }) 525 })
526 526
527 it('Should notify when a remote channel is following one of our channel', async function () { 527 it('Should notify when a remote channel is following one of our channel', async function () {
528 this.timeout(50000) 528 this.timeout(50000)
529 529
530 await servers[1].subscriptions.add({ targetUri: 'user_1_channel@localhost:' + servers[0].port }) 530 await servers[1].subscriptions.add({ targetUri: 'user_1_channel@' + servers[0].host })
531 await waitJobs(servers) 531 await waitJobs(servers)
532 532
533 await checkNewActorFollow({ 533 await checkNewActorFollow({
@@ -539,14 +539,14 @@ describe('Test user notifications', function () {
539 checkType: 'presence' 539 checkType: 'presence'
540 }) 540 })
541 541
542 await servers[1].subscriptions.remove({ uri: 'user_1_channel@localhost:' + servers[0].port }) 542 await servers[1].subscriptions.remove({ uri: 'user_1_channel@' + servers[0].host })
543 }) 543 })
544 544
545 // PeerTube does not support account -> account follows 545 // PeerTube does not support account -> account follows
546 // it('Should notify when a local account is following one of our channel', async function () { 546 // it('Should notify when a local account is following one of our channel', async function () {
547 // this.timeout(50000) 547 // this.timeout(50000)
548 // 548 //
549 // await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@localhost:' + servers[0].port) 549 // await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@' + servers[0].host)
550 // 550 //
551 // await waitJobs(servers) 551 // await waitJobs(servers)
552 // 552 //
@@ -556,7 +556,7 @@ describe('Test user notifications', function () {
556 // it('Should notify when a remote account is following one of our channel', async function () { 556 // it('Should notify when a remote account is following one of our channel', async function () {
557 // this.timeout(50000) 557 // this.timeout(50000)
558 // 558 //
559 // await addUserSubscription(servers[1].url, servers[1].accessToken, 'user_1@localhost:' + servers[0].port) 559 // await addUserSubscription(servers[1].url, servers[1].accessToken, 'user_1@' + servers[0].host)
560 // 560 //
561 // await waitJobs(servers) 561 // await waitJobs(servers)
562 // 562 //