Skip to content

Commit b7a9ecd

Browse files
authored
Merge branch 'master' into compose-file-fail-start
2 parents 703ca11 + de8939d commit b7a9ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testcontainers/clickhouse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ def __init__(
5252
self.CLICKHOUSE_PASSWORD = password or self.CLICKHOUSE_PASSWORD
5353
self.CLICKHOUSE_DB = dbname or self.CLICKHOUSE_DB
5454
self.port_to_expose = port
55+
self.with_exposed_ports(self.port_to_expose)
5556

5657
@wait_container_is_ready(Error, EOFError)
5758
def _connect(self):
5859
with clickhouse_driver.Client.from_url(self.get_connection_url()) as client:
5960
client.execute("SELECT version()")
6061

6162
def _configure(self):
62-
self.with_exposed_ports(self.port_to_expose)
6363
self.with_env("CLICKHOUSE_USER", self.CLICKHOUSE_USER)
6464
self.with_env("CLICKHOUSE_PASSWORD", self.CLICKHOUSE_PASSWORD)
6565
self.with_env("CLICKHOUSE_DB", self.CLICKHOUSE_DB)

0 commit comments

Comments
 (0)