Skip to content

Commit

Permalink
Tests: Run test suite 6 seconds faster
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 26, 2022
1 parent d540da6 commit 3818db6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion test/test_airrohr.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def test_airrohr_http_json(machinery_basic, create_influxdb, reset_influxdb):

# Wait for some time to process the message.
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)

# Proof that data arrived in InfluxDB.
record = influx_sensors.get_first_record()
Expand Down
2 changes: 0 additions & 2 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ def test_mqtt_strategy_lan(machinery_basic, create_influxdb, reset_influxdb, res

# Wait for some time to process the message.
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)

# Proof that data arrived in InfluxDB.
record = influx_sensors.get_first_record()
Expand Down
6 changes: 0 additions & 6 deletions test/test_daq_grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ def test_mqtt_to_grafana_two_panels(machinery, create_influxdb, reset_influxdb,

# Wait for some time to process the message.
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)

# Proof that Grafana is well provisioned.
logger.info('Grafana: Checking datasource')
Expand Down Expand Up @@ -153,8 +151,6 @@ def test_mqtt_to_grafana_two_dashboards(machinery, create_influxdb, reset_influx

# Wait for some time to process the message.
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)

# Proof that Grafana is well provisioned.
logger.info('Grafana: Checking datasource')
Expand All @@ -170,8 +166,6 @@ def test_mqtt_to_grafana_two_dashboards(machinery, create_influxdb, reset_influx

# Wait for some time to process the message.
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)

logger.info('Grafana: Check dashboards after update')
titles = grafana.get_dashboard_titles()
Expand Down
1 change: 0 additions & 1 deletion test/test_daq_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def test_http_json_valid(machinery, create_influxdb, reset_influxdb):

# Wait for some time to process the message.
yield sleep(PROCESS_DELAY_HTTP)
yield sleep(PROCESS_DELAY_HTTP)

# Proof that data arrived in InfluxDB.
record = influx_sensors.get_first_record()
Expand Down
1 change: 0 additions & 1 deletion test/test_vendor_hiveeyes.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def test_mqtt_to_grafana(machinery_hiveeyes, create_influxdb_hiveeyes, reset_inf

# Wait for Grafana to create its artefacts.
yield sleep(PROCESS_DELAY_MQTT)
yield sleep(PROCESS_DELAY_MQTT)

# Proof that Grafana is well provisioned.
logger.info('Grafana: Checking datasource')
Expand Down

0 comments on commit 3818db6

Please sign in to comment.