1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Fix CI using 127.0.0.1 for tests

This commit is contained in:
Chocobozzz 2022-12-09 11:14:47 +01:00
parent c7c5f8d0f1
commit 2732eeff9e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
62 changed files with 312 additions and 322 deletions

View file

@ -233,7 +233,7 @@ describe('Test user notifications API validators', function () {
describe('When connecting to my notification socket', function () {
it('Should fail with no token', function (next) {
const socket = io(`http://localhost:${server.port}/user-notifications`, { reconnection: false })
const socket = io(`${server.url}/user-notifications`, { reconnection: false })
socket.once('connect_error', function () {
socket.disconnect()
@ -247,7 +247,7 @@ describe('Test user notifications API validators', function () {
})
it('Should fail with an invalid token', function (next) {
const socket = io(`http://localhost:${server.port}/user-notifications`, {
const socket = io(`${server.url}/user-notifications`, {
query: { accessToken: 'bad_access_token' },
reconnection: false
})
@ -264,7 +264,7 @@ describe('Test user notifications API validators', function () {
})
it('Should success with the correct token', function (next) {
const socket = io(`http://localhost:${server.port}/user-notifications`, {
const socket = io(`${server.url}/user-notifications`, {
query: { accessToken: server.accessToken },
reconnection: false
})