From 2732eeff9e6994582293b5aaa0cb158b7e272e9e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Dec 2022 11:14:47 +0100 Subject: Fix CI using 127.0.0.1 for tests --- shared/server-commands/miscs/sql-command.ts | 2 +- shared/server-commands/server/server.ts | 6 +++--- shared/server-commands/videos/live.ts | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'shared/server-commands') diff --git a/shared/server-commands/miscs/sql-command.ts b/shared/server-commands/miscs/sql-command.ts index f163cc8c9..dbc441aba 100644 --- a/shared/server-commands/miscs/sql-command.ts +++ b/shared/server-commands/miscs/sql-command.ts @@ -131,7 +131,7 @@ export class SQLCommand extends AbstractCommand { const dbname = 'peertube_test' + this.server.internalServerNumber const username = 'peertube' const password = 'peertube' - const host = 'localhost' + const host = '127.0.0.1' const port = 5432 this.sequelize = new Sequelize(dbname, username, password, { diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index f2ca51431..ae1395a74 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts @@ -179,9 +179,9 @@ export class PeerTubeServer { this.rtmpsPort = this.parallel ? this.randomRTMP() : 1937 this.port = 9000 + this.internalServerNumber - this.url = `http://localhost:${this.port}` - this.host = `localhost:${this.port}` - this.hostname = 'localhost' + this.url = `http://127.0.0.1:${this.port}` + this.host = `127.0.0.1:${this.port}` + this.hostname = '127.0.0.1' } setUrl (url: string) { diff --git a/shared/server-commands/videos/live.ts b/shared/server-commands/videos/live.ts index ee7444b64..578e6ede7 100644 --- a/shared/server-commands/videos/live.ts +++ b/shared/server-commands/videos/live.ts @@ -39,6 +39,7 @@ function sendRTMPStream (options: { if (process.env.DEBUG) { command.on('stderr', data => console.log(data)) + command.on('stdout', data => console.log(data)) } command.run() -- cgit v1.2.3