Skip to content

Commit a38dfc2

Browse files
committed
chore: relax uv, fix unleash e2e test stability
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent 6f96688 commit a38dfc2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

providers/openfeature-provider-unleash/tests/test_integration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ def _configure(self):
4040
self.with_env("ADMIN_AUTHENTICATION", "none")
4141
self.with_env("AUTH_ENABLE", "false")
4242
self.with_env("INIT_CLIENT_API_TOKENS", API_TOKEN)
43+
# limit the connection pool to reduce the likelihood of concurrent
44+
# migration attempts that trigger pg_class_relname_nsp_index errors
45+
self.with_env("DATABASE_POOL_MIN", "1")
46+
self.with_env("DATABASE_POOL_MAX", "1")
4347
# Expose the Unleash port
4448
self.with_exposed_ports(4242)
4549

@@ -299,7 +303,6 @@ def wait_for_flags_visible(timeout=30, interval=2):
299303
def postgres_container():
300304
"""Create and start PostgreSQL container."""
301305
with PostgresContainer("postgres:15", driver=None) as postgres:
302-
postgres.start()
303306
postgres_url = postgres.get_connection_url()
304307
logger.info(f"PostgreSQL started at: {postgres_url}")
305308

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dev = [
2222
]
2323

2424
[tool.uv]
25-
required-version = "~=0.10.0"
25+
required-version = ">=0.10.0"
2626
package = false
2727

2828
[tool.uv.sources]

0 commit comments

Comments
 (0)