@@ -45,7 +45,7 @@ defmodule Testcontainers.RabbitMQContainer do
4545 Overrides the default image use for the RabbitMQ container.
4646
4747 ## Examples
48-
48+
4949 iex> config = RabbitMQContainer.new() |> RabbitMQContainer.with_image("rabbitmq:xyz")
5050 iex> config.image
5151 "rabbitmq:xyz"
@@ -58,7 +58,7 @@ defmodule Testcontainers.RabbitMQContainer do
5858 Overrides the default port used for the RabbitMQ container.
5959
6060 ## Examples
61-
61+
6262 iex> config = RabbitMQContainer.new() |> RabbitMQContainer.with_port(1111)
6363 iex> config.port
6464 1111
@@ -73,7 +73,7 @@ defmodule Testcontainers.RabbitMQContainer do
7373 Note: this timeout will be used for each individual wait strategy.
7474
7575 ## Examples
76-
76+
7777 iex> config = RabbitMQContainer.new() |> RabbitMQContainer.with_wait_timeout(60000)
7878 iex> config.wait_timeout
7979 60000
@@ -86,7 +86,7 @@ defmodule Testcontainers.RabbitMQContainer do
8686 Overrides the default user used for the RabbitMQ container.
8787
8888 ## Examples
89-
89+
9090 iex> config = RabbitMQContainer.new() |> RabbitMQContainer.with_username("rabbitmq")
9191 iex> config.username
9292 "rabbitmq"
@@ -99,7 +99,7 @@ defmodule Testcontainers.RabbitMQContainer do
9999 Overrides the default password used for the RabbitMQ container.
100100
101101 ## Examples
102-
102+
103103 iex> config = RabbitMQContainer.new() |> RabbitMQContainer.with_password("rabbitmq")
104104 iex> config.password
105105 "rabbitmq"
@@ -112,7 +112,7 @@ defmodule Testcontainers.RabbitMQContainer do
112112 Overrides the default virtual host used for the RabbitMQ container.
113113
114114 ## Examples
115-
115+
116116 iex> config = RabbitMQContainer.new() |> RabbitMQContainer.with_virtual_host("/")
117117 iex> config.password
118118 "/"
@@ -125,7 +125,7 @@ defmodule Testcontainers.RabbitMQContainer do
125125 Overrides the default command used for the RabbitMQ container.
126126
127127 ## Examples
128-
128+
129129 iex> config = RabbitMQContainer.new() |> RabbitMQContainer.with_cmd(["sh", "-c", "rabbitmq-server"])
130130 iex> config.cmd
131131 ["sh", "-c", "rabbitmq-server"]
@@ -172,9 +172,9 @@ defmodule Testcontainers.RabbitMQContainer do
172172 ## Examples
173173
174174 iex> RabbitMQContainer.connection_url(container)
175- "amqp://guest:guest@localhost:32768"
175+ "amqp://guest:guest@localhost:32768"
176176 iex> RabbitMQContainer.connection_url(container_with_vhost)
177- "amqp://guest:guest@localhost:32768/vhost"
177+ "amqp://guest:guest@localhost:32768/vhost"
178178 """
179179 def connection_url ( % Container { } = container ) do
180180 "amqp://#{ container . environment [ :RABBITMQ_DEFAULT_USER ] } :#{ container . environment [ :RABBITMQ_DEFAULT_PASS ] } @#{ Testcontainers . get_host ( ) } :#{ port ( container ) } #{ virtual_host_segment ( container ) } "
@@ -264,7 +264,7 @@ defmodule Testcontainers.RabbitMQContainer do
264264 end
265265
266266 @ impl true
267- @ spec is_starting ( % RabbitMQContainer { } , % Container { } , % Tesla.Env { } ) :: :ok
268- def is_starting ( _config , _container , _conn ) , do: :ok
267+ @ spec after_start ( % RabbitMQContainer { } , % Container { } , % Tesla.Env { } ) :: :ok
268+ def after_start ( _config , _container , _conn ) , do: :ok
269269 end
270270end
0 commit comments