aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/update-host.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/cli/update-host.ts')
-rw-r--r--server/tests/cli/update-host.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tests/cli/update-host.ts b/server/tests/cli/update-host.ts
index 97632450a..51257d3d3 100644
--- a/server/tests/cli/update-host.ts
+++ b/server/tests/cli/update-host.ts
@@ -67,7 +67,7 @@ describe('Test update host scripts', function () {
67 for (const video of data) { 67 for (const video of data) {
68 const { body } = await makeActivityPubGetRequest(server.url, '/videos/watch/' + video.uuid) 68 const { body } = await makeActivityPubGetRequest(server.url, '/videos/watch/' + video.uuid)
69 69
70 expect(body.id).to.equal('http://localhost:9002/videos/watch/' + video.uuid) 70 expect(body.id).to.equal('http://127.0.0.1:9002/videos/watch/' + video.uuid)
71 71
72 const videoDetails = await server.videos.get({ id: video.uuid }) 72 const videoDetails = await server.videos.get({ id: video.uuid })
73 73
@@ -84,7 +84,7 @@ describe('Test update host scripts', function () {
84 for (const channel of data) { 84 for (const channel of data) {
85 const { body } = await makeActivityPubGetRequest(server.url, '/video-channels/' + channel.name) 85 const { body } = await makeActivityPubGetRequest(server.url, '/video-channels/' + channel.name)
86 86
87 expect(body.id).to.equal('http://localhost:9002/video-channels/' + channel.name) 87 expect(body.id).to.equal('http://127.0.0.1:9002/video-channels/' + channel.name)
88 } 88 }
89 }) 89 })
90 90
@@ -96,7 +96,7 @@ describe('Test update host scripts', function () {
96 const usernameWithDomain = account.name 96 const usernameWithDomain = account.name
97 const { body } = await makeActivityPubGetRequest(server.url, '/accounts/' + usernameWithDomain) 97 const { body } = await makeActivityPubGetRequest(server.url, '/accounts/' + usernameWithDomain)
98 98
99 expect(body.id).to.equal('http://localhost:9002/accounts/' + usernameWithDomain) 99 expect(body.id).to.equal('http://127.0.0.1:9002/accounts/' + usernameWithDomain)
100 } 100 }
101 }) 101 })
102 102
@@ -113,17 +113,17 @@ describe('Test update host scripts', function () {
113 expect(files).to.have.lengthOf(8) 113 expect(files).to.have.lengthOf(8)
114 114
115 for (const file of files) { 115 for (const file of files) {
116 expect(file.magnetUri).to.contain('localhost%3A9002%2Ftracker%2Fsocket') 116 expect(file.magnetUri).to.contain('127.0.0.1%3A9002%2Ftracker%2Fsocket')
117 expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2F') 117 expect(file.magnetUri).to.contain('127.0.0.1%3A9002%2Fstatic%2F')
118 118
119 const torrent = await parseTorrentVideo(server, file) 119 const torrent = await parseTorrentVideo(server, file)
120 const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket') 120 const announceWS = torrent.announce.find(a => a === 'ws://127.0.0.1:9002/tracker/socket')
121 expect(announceWS).to.not.be.undefined 121 expect(announceWS).to.not.be.undefined
122 122
123 const announceHttp = torrent.announce.find(a => a === 'http://localhost:9002/tracker/announce') 123 const announceHttp = torrent.announce.find(a => a === 'http://127.0.0.1:9002/tracker/announce')
124 expect(announceHttp).to.not.be.undefined 124 expect(announceHttp).to.not.be.undefined
125 125
126 expect(torrent.urlList[0]).to.contain('http://localhost:9002/static/') 126 expect(torrent.urlList[0]).to.contain('http://127.0.0.1:9002/static/')
127 } 127 }
128 } 128 }
129 }) 129 })