Skip to content

Commit 12b97b9

Browse files
committed
Add a little delay to the Mosquitto fixture
Possibly faster GitHub runners made MQTT software tests fail on the LorryStream project.
1 parent 3e410fb commit 12b97b9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ pytest-mqtt changelog
55

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

911
2024-05-08 0.4.1
1012
================

pytest_mqtt/mosquitto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from pytest_docker_fixtures.containers._base import BaseImage
2323

2424
from pytest_mqtt.model import MqttSettings
25-
from pytest_mqtt.util import probe_tcp_connect
25+
from pytest_mqtt.util import delay, probe_tcp_connect
2626

2727
images.settings["mosquitto"] = {
2828
"image": "eclipse-mosquitto",
@@ -108,4 +108,5 @@ def mosquitto(mqtt_settings: MqttSettings):
108108
yield os.environ["MOSQUITTO"].split(":")
109109
else:
110110
yield mosquitto_image.run()
111+
delay()
111112
mosquitto_image.stop()

0 commit comments

Comments
 (0)