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.
This commit is contained in:
parent
1f5dc8bd15
commit
865fb91298
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue