Skip to content

Commit

Permalink
added ThreadingLock to prometheusApi instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOsypenko committed Nov 2, 2023
1 parent 0bbd7bb commit 9904395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ui/test_odf_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def test_validate_topology_deployment_details(self, setup_ui_class):
@ignore_leftovers
@polarion_id("OCS-4905")
def test_stop_start_node_validate_topology(
self, nodes, setup_ui_class, teardown_nodes_job
self, nodes, setup_ui_class, teardown_nodes_job, threading_lock
):
"""
Test to validate ODF Topology when node hard-stopped and started again
Expand Down Expand Up @@ -269,7 +269,7 @@ def test_stop_start_node_validate_topology(
)
nodes.stop_nodes(nodes=[random_node_under_test], force=True)

api = prometheus.PrometheusAPI()
api = prometheus.PrometheusAPI(threading_lock=threading_lock)
logger.info(f"Verifying whether {constants.ALERT_NODEDOWN} has been triggered")
alerts = api.wait_for_alert(name=constants.ALERT_NODEDOWN, state="firing")
test_checks = dict()
Expand Down

0 comments on commit 9904395

Please sign in to comment.