Skip to content

Commit 96ed1ef

Browse files
committed
add concurrent.futures.TimeoutError to connect
1 parent ce631db commit 96ed1ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from asyncio import AbstractEventLoop
44
from collections.abc import AsyncGenerator
55
from collections.abc import Generator
6+
from concurrent.futures import TimeoutError
67
from typing import Any
78
from typing import Callable
89

@@ -60,7 +61,7 @@ def get_ydb_host(self) -> str:
6061
def get_ydb_port(self) -> str:
6162
return self.get_exposed_port(self.port_to_expose)
6263

63-
@wait_container_is_ready(ydb.ConnectionError)
64+
@wait_container_is_ready(ydb.ConnectionError, TimeoutError)
6465
def _connect(self) -> None:
6566
with ydb.Driver(
6667
connection_string=self.get_connection_string()

0 commit comments

Comments
 (0)