randomsync / robotframework-mqttlibrary

MQTT Keyword Library for Robot Framework
Apache License 2.0
25 stars 30 forks source link

Update MQTTKeywords.py suites to repair a messages abandoning deficiency #23

Open obnjed opened 3 years ago

obnjed commented 3 years ago

This code (self._messages[topic] = []) in "subscribe" and "listen" will abandon some messages that would not return to scripts when multiple messages received and multiple “subscribe” or “listen” called in very short time.

This modification suites to repair the deficiency above.

randomsync commented 3 years ago

Hi @obnjed thanks for the PR. Can you provide a test that reproduces the issue?