From 865fb9129826c67a2a5528419992fddda42a19e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Tue, 31 Mar 2026 09:38:46 +0200 Subject: [PATCH] fix(tests): use random port for pg0 in tests to avoid port conflicts (#801) pg0 supports auto-assigning a free port when port=None. This avoids test failures when port 5556 is already in use by another process. --- hindsight-api-slim/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hindsight-api-slim/tests/conftest.py b/hindsight-api-slim/tests/conftest.py index 8d0c64a8..d051849b 100644 --- a/hindsight-api-slim/tests/conftest.py +++ b/hindsight-api-slim/tests/conftest.py @@ -17,7 +17,7 @@ from hindsight_api.pg0 import EmbeddedPostgres # Default pg0 instance configuration for tests DEFAULT_PG0_INSTANCE_NAME = "hindsight-test" -DEFAULT_PG0_PORT = 5556 +DEFAULT_PG0_PORT = None # Load environment variables from .env at the start of test session