Skip to content

Commit

Permalink
add warning to explain possible failure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderankin committed Jun 12, 2024
1 parent 4710400 commit 043300f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/mqtt/testcontainers/mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ def start(self, configfile: Optional[str] = None) -> Self:

def _wait(self):
if self.image.split(":")[-1].startswith("1"):
import logging

logging.warning(
"You are using version 1 of eclipse-mosquitto which is not supported for use by this module without paho-mqtt also installed"
)
self.get_client()
else:
wait_for_logs(self, r"mosquitto version \d+.\d+.\d+ running", timeout=30)
Expand Down

0 comments on commit 043300f

Please sign in to comment.