adafruit / Adafruit_CircuitPython_MiniMQTT

MQTT Client Library for CircuitPython
Other
72 stars 50 forks source link

add basic loop() test #172

Closed vladak closed 11 months ago

vladak commented 11 months ago

Since finishing PR #169, I have been thinking about at least simple test for the loop() return semantics. Here it is.

There is some room for improvement (like always). Specifically, there are other aspects of the function that could be tested (such as MQTT ping) and also if loop() was not cooperating (by returning within some time), the test would be hosed.