Skip to content

Commit

Permalink
Add a little delay to the Mosquitto fixture
Browse files Browse the repository at this point in the history
Possibly faster GitHub runners made MQTT software tests fail on the
LorryStream project.
  • Loading branch information
amotl committed Jul 29, 2024
1 parent 3e410fb commit db0f0fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
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()

0 comments on commit db0f0fc

Please sign in to comment.