Skip to content

Commit

Permalink
add concurrent.futures.TimeoutError to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvoleg committed Oct 23, 2024
1 parent ce631db commit 96ed1ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from asyncio import AbstractEventLoop
from collections.abc import AsyncGenerator
from collections.abc import Generator
from concurrent.futures import TimeoutError
from typing import Any
from typing import Callable

Expand Down Expand Up @@ -60,7 +61,7 @@ def get_ydb_host(self) -> str:
def get_ydb_port(self) -> str:
return self.get_exposed_port(self.port_to_expose)

@wait_container_is_ready(ydb.ConnectionError)
@wait_container_is_ready(ydb.ConnectionError, TimeoutError)
def _connect(self) -> None:
with ydb.Driver(
connection_string=self.get_connection_string()
Expand Down

0 comments on commit 96ed1ef

Please sign in to comment.