diff --git a/test/io/postgrest.py b/test/io/postgrest.py index 30a4c1ec9..ae977e3e2 100644 --- a/test/io/postgrest.py +++ b/test/io/postgrest.py @@ -92,15 +92,15 @@ def run( process.stdout.read() + if no_pool_connection_available: + sleep_pool_connection(baseurl, 10) + yield PostgrestProcess( process=process, session=PostgrestSession(baseurl), admin=PostgrestSession(adminurl), ) finally: - if no_pool_connection_available: - sleep_pool_connection(baseurl, 10) - remaining_output = process.stdout.read() if remaining_output: print(remaining_output.decode()) diff --git a/test/io/test_sanity.py b/test/io/test_sanity.py index 6bbd8e3aa..700b74c8c 100644 --- a/test/io/test_sanity.py +++ b/test/io/test_sanity.py @@ -28,7 +28,6 @@ def test_plain_get(defaultenv): assert response.status_code == 200 -@pytest.mark.xfail(reason="option is broken, issue #2456") def test_no_pool_connection_available(defaultenv): "no_pool_connection_available option is functional" with run(env=defaultenv, no_pool_connection_available=True) as postgrest: