Skip to content

Commit

Permalink
Attempt to fix flakey test_airrohr_http_json
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 28, 2021
1 parent 595bb9c commit 0414e02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_airrohr.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def test_airrohr_http_json(machinery_basic, create_influxdb, reset_influxdb):
and proof it is stored in the InfluxDB database.
"""

# Wait for some time to let the machinery spin up.
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)

# Submit a single measurement, without timestamp.
yield threads.deferToThread(http_json_sensor, settings.channel_path_airrohr, data_in)

Expand Down

0 comments on commit 0414e02

Please sign in to comment.