Skip to content

Commit

Permalink
Fixes incorrect comparision for bucket metric test
Browse files Browse the repository at this point in the history
Signed-off-by: Uday Kurundwade <[email protected]>
  • Loading branch information
udaysk23 committed Sep 19, 2024
1 parent 8548ab9 commit 5bebdaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/object/mcg/test_noobaa_prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_bucket_used_bytes_metric(bucket_name, threading_lock):
)
if len(response.get("data").get("result")) == 0:
raise ReturnedEmptyResponseException
elif response.get("data").get("result")[0].get("value")[1] == 0:
elif response.get("data").get("result")[0].get("value")[1] == '0':
raise ReturnedEmptyResponseException
else:
value = response.get("data").get("result")[0].get("value")
Expand Down

0 comments on commit 5bebdaf

Please sign in to comment.