diff --git a/test_runner/fixtures/neon_fixtures.py b/test_runner/fixtures/neon_fixtures.py index 67838ca218..af7571cc4d 100644 --- a/test_runner/fixtures/neon_fixtures.py +++ b/test_runner/fixtures/neon_fixtures.py @@ -2142,7 +2142,7 @@ class NeonProxy(PgProtocol): try: self._popen.wait(timeout=5) except subprocess.TimeoutExpired: - log.warn("failed to gracefully terminate proxy; killing") + log.warning("failed to gracefully terminate proxy; killing") self._popen.kill() @staticmethod diff --git a/test_runner/regress/test_metric_collection.py b/test_runner/regress/test_metric_collection.py index 54cd86dc84..df542fb84a 100644 --- a/test_runner/regress/test_metric_collection.py +++ b/test_runner/regress/test_metric_collection.py @@ -199,7 +199,7 @@ def proxy_metrics_handler(request: Request) -> Response: return Response(status=200) -@pytest.fixture(scope="session") +@pytest.fixture(scope="function") def proxy_with_metric_collector( port_distributor: PortDistributor, neon_binpath: Path, diff --git a/test_runner/regress/test_sni_router.py b/test_runner/regress/test_sni_router.py index d930f8cd4c..64cfd017e6 100644 --- a/test_runner/regress/test_sni_router.py +++ b/test_runner/regress/test_sni_router.py @@ -93,7 +93,7 @@ class PgSniRouter(PgProtocol): try: self._popen.wait(timeout=5) except subprocess.TimeoutExpired: - log.warn("failed to gracefully terminate pg_sni_router; killing") + log.warning("failed to gracefully terminate pg_sni_router; killing") self._popen.kill()