chore: migrate PASEO_PORT to PASEO_LISTEN across codebase

This commit is contained in:
Mohamed Boudra
2026-02-05 14:35:35 +07:00
parent 7ae56bcdd1
commit 8d1d7b7603
4 changed files with 8 additions and 11 deletions
+1 -2
View File
@@ -102,7 +102,7 @@ function sleep(ms: number): Promise<void> {
* Start a test daemon programmatically using the server's bootstrap API
*
* This starts the daemon in a separate process using the CLI's daemon start command
* with isolated PASEO_HOME and PASEO_PORT environment variables.
* with isolated PASEO_HOME and PASEO_LISTEN environment variables.
*/
export async function startTestDaemon(options?: {
port?: number
@@ -128,7 +128,6 @@ export async function startTestDaemon(options?: {
...process.env,
PASEO_HOME: paseoHome,
PASEO_LISTEN: `127.0.0.1:${port}`,
PASEO_PORT: String(port),
// Disable relay for tests
PASEO_RELAY_ENABLED: 'false',
// Force no TTY to prevent QR code output
+1 -1
View File
@@ -72,7 +72,7 @@ export async function startDaemon(
paseoHome: string
): Promise<ProcessPromise> {
$.verbose = false
const daemon = $`PASEO_HOME=${paseoHome} PASEO_PORT=${port} paseo daemon start --foreground`.nothrow()
const daemon = $`PASEO_HOME=${paseoHome} PASEO_LISTEN=127.0.0.1:${port} paseo daemon start --foreground`.nothrow()
return daemon
}