File tree 1 file changed +6
-2
lines changed
modules/rabbitmq/testcontainers/rabbitmq
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ def __init__(
51
51
self .with_env ("RABBITMQ_DEFAULT_USER" , self .username )
52
52
self .with_env ("RABBITMQ_DEFAULT_PASS" , self .password )
53
53
54
- @wait_container_is_ready (pika .exceptions .IncompatibleProtocolError )
54
+ @wait_container_is_ready (
55
+ pika .exceptions .IncompatibleProtocolError , pika .exceptions .AMQPConnectionError
56
+ )
55
57
def readiness_probe (self ) -> bool :
56
58
"""Test if the RabbitMQ broker is ready."""
57
59
connection = pika .BlockingConnection (self .get_connection_params ())
@@ -66,7 +68,9 @@ def get_connection_params(self) -> pika.ConnectionParameters:
66
68
For more details see:
67
69
https://pika.readthedocs.io/en/latest/modules/parameters.html
68
70
"""
69
- credentials = pika .PlainCredentials (username = self .username , password = self .password )
71
+ credentials = pika .PlainCredentials (
72
+ username = self .username , password = self .password
73
+ )
70
74
71
75
return pika .ConnectionParameters (
72
76
host = self .get_container_host_ip (),
You can’t perform that action at this time.
0 commit comments