Skip to content

Add a little delay to the Mosquitto fixture #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ pytest-mqtt changelog

in progress
===========
- Added a little delay to the Mosquitto fixture. Possibly faster GitHub
runners made MQTT software tests fail on the LorryStream project.

2024-05-08 0.4.1
================
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ develop = [
"isort<6",
"black<25",
"poethepoet<1",
"ruff",
"ruff<0.6",
]
release = [
"build<2",
Expand Down Expand Up @@ -152,7 +152,7 @@ format = [
{cmd="isort pytest_mqtt testing"},
]
lint = [
{cmd="ruff ."},
{cmd="ruff check ."},
{cmd="black --check ."},
{cmd="isort --check pytest_mqtt testing"},
]
Expand Down
3 changes: 2 additions & 1 deletion pytest_mqtt/mosquitto.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from pytest_docker_fixtures.containers._base import BaseImage

from pytest_mqtt.model import MqttSettings
from pytest_mqtt.util import probe_tcp_connect
from pytest_mqtt.util import delay, probe_tcp_connect

images.settings["mosquitto"] = {
"image": "eclipse-mosquitto",
Expand Down Expand Up @@ -108,4 +108,5 @@ def mosquitto(mqtt_settings: MqttSettings):
yield os.environ["MOSQUITTO"].split(":")
else:
yield mosquitto_image.run()
delay()
mosquitto_image.stop()