File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
clickhouse/testcontainers/clickhouse Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1313import os
1414
1515import clickhouse_connect
16+ from clickhouse_connect .driver .exceptions import Error as ClickhouseConnectError
1617import clickhouse_driver
17- from clickhouse_connect . driver . exceptions import Error
18+ from clickhouse_driver . errors import Error as ClickhouseDriverError
1819
1920from testcontainers .core .generic import DbContainer
2021from testcontainers .core .waiting_utils import wait_container_is_ready
@@ -66,7 +67,7 @@ def __init__(
6667 self .port_to_expose = port
6768 self .with_exposed_ports (self .port_to_expose )
6869
69- @wait_container_is_ready (Error , EOFError )
70+ @wait_container_is_ready (ClickhouseDriverError , ClickhouseConnectError , EOFError )
7071 def _connect (self ):
7172 if self .port_to_expose == 8123 :
7273 with clickhouse_connect .get_client (dsn = self .get_connection_url ()) as client :
You can’t perform that action at this time.
0 commit comments