for (const video of data) {
const { body } = await makeActivityPubGetRequest(server.url, '/videos/watch/' + video.uuid)
- expect(body.id).to.equal('http://localhost:9002/videos/watch/' + video.uuid)
+ expect(body.id).to.equal('http://127.0.0.1:9002/videos/watch/' + video.uuid)
const videoDetails = await server.videos.get({ id: video.uuid })
for (const channel of data) {
const { body } = await makeActivityPubGetRequest(server.url, '/video-channels/' + channel.name)
- expect(body.id).to.equal('http://localhost:9002/video-channels/' + channel.name)
+ expect(body.id).to.equal('http://127.0.0.1:9002/video-channels/' + channel.name)
}
})
const usernameWithDomain = account.name
const { body } = await makeActivityPubGetRequest(server.url, '/accounts/' + usernameWithDomain)
- expect(body.id).to.equal('http://localhost:9002/accounts/' + usernameWithDomain)
+ expect(body.id).to.equal('http://127.0.0.1:9002/accounts/' + usernameWithDomain)
}
})
expect(files).to.have.lengthOf(8)
for (const file of files) {
- expect(file.magnetUri).to.contain('localhost%3A9002%2Ftracker%2Fsocket')
- expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2F')
+ expect(file.magnetUri).to.contain('127.0.0.1%3A9002%2Ftracker%2Fsocket')
+ expect(file.magnetUri).to.contain('127.0.0.1%3A9002%2Fstatic%2F')
const torrent = await parseTorrentVideo(server, file)
- const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket')
+ const announceWS = torrent.announce.find(a => a === 'ws://127.0.0.1:9002/tracker/socket')
expect(announceWS).to.not.be.undefined
- const announceHttp = torrent.announce.find(a => a === 'http://localhost:9002/tracker/announce')
+ const announceHttp = torrent.announce.find(a => a === 'http://127.0.0.1:9002/tracker/announce')
expect(announceHttp).to.not.be.undefined
- expect(torrent.urlList[0]).to.contain('http://localhost:9002/static/')
+ expect(torrent.urlList[0]).to.contain('http://127.0.0.1:9002/static/')
}
}
})