ydb-python-sdk icon indicating copy to clipboard operation
ydb-python-sdk copied to clipboard

bug: Driver with bad endpoint hung up on stop

Open rekby opened this issue 1 year ago • 0 comments

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

rekby avatar May 26 '23 07:05 rekby