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:
parent
c7c5f8d0f1
commit
2732eeff9e
62 changed files with 312 additions and 322 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue