diff --git a/tests/integration/sql/conftest.py b/tests/integration/sql/conftest.py index 6a862fd766..f06bbb35c8 100644 --- a/tests/integration/sql/conftest.py +++ b/tests/integration/sql/conftest.py @@ -14,5 +14,9 @@ ) @pytest.fixture(scope="session") def check_db_server_initialized() -> None: - with sqlalchemy.create_engine(TRINO_URL).connect() as conn: - conn.execute(sqlalchemy.text("SELECT 1")) + try: + with sqlalchemy.create_engine(TRINO_URL).connect() as conn: + conn.execute(sqlalchemy.text("SELECT 1")) + except Exception as e: + print(f"Connection failed with exception: {e}") + raise