ydb-python-sdk
ydb-python-sdk copied to clipboard
bug: Driver with bad endpoint hung up on stop
Bug Report
YDB Python SDK version: 3.3.4
Current behavior: code not completed
Expected behavior: stop test
Steps to reproduce:
import ydb.aio
import asyncio
async def main():
driver = ydb.aio.Driver(database="/NonExistentDatabase", endpoint="localhost:42")
try:
await driver.wait(timeout=1)
except Exception:
pass
await driver.stop()
def test():
asyncio.run(main())
python3 -m pytest tmp.py