Fix mqtt functionality tests CI

1. Make mosquitto more verbose
  2. Sleep for 1 second in mqtt LOGIN keyword
This commit is contained in:
eeff
2021-12-31 18:27:37 +08:00
committed by Parker Liu
parent d8e9ac3687
commit 2928a7a46a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ jobs:
- name: Run function test
run: |
mosquitto &
mosquitto -v &
pip3 install -r ft/requirements.txt
python3 -m robot -P ft/ --variable neuron_api:http -d ft/http_reports ft
python3 -m robot -P ft/ --variable neuron_api:mqtt -d ft/mqtt_reports ft
+1
View File
@@ -76,6 +76,7 @@ LOGIN
_Http Node Setting ${mqtt_node} ${MQTT_CONFIG}
_Http Node Ctl ${mqtt_node} ${NODE_CTL_START}
_Http LOGOUT
Sleep 1s
Connect ${MQTT_CONFIG_HOST} ${MQTT_CONFIG_PORT} client_id=neuron-ft clean_session=${true}
Subscribe ${MQTT_CONFIG_RES_TOPIC} qos=0 timeout=5