fix more python tests

This commit is contained in:
Stas Kelvich
2023-04-28 14:16:04 +03:00
parent 0364f77b9a
commit 5bb971d64e
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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,

View File

@@ -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()