Skip to content

Commit

Permalink
fix: fix flaky test_node_metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Chris <[email protected]>
  • Loading branch information
chriscchien authored and c3y1huang committed Mar 27, 2024
1 parent a4a460c commit fff5fe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager/integration/tests/test_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from common import write_volume_data
from common import set_node_scheduling
from common import set_node_cordon
from common import wait_for_node_update
from common import Mi
from common import LONGHORN_NAMESPACE
from common import RETRY_COUNTS
Expand Down Expand Up @@ -537,5 +538,6 @@ def test_node_metrics(client, core_api): # NOQA
"node": lht_hostId
}
set_node_cordon(core_api, lht_hostId, True)
wait_for_node_update(client, lht_hostId, "allowScheduling", False)
check_metric_with_condition(core_api, "longhorn_node_status",
metric_labels, 0.0)

0 comments on commit fff5fe8

Please sign in to comment.