From 9714b54629a2d6c0bcb237ee0807adcae1a84b12 Mon Sep 17 00:00:00 2001 From: antonmyronyuk Date: Thu, 6 Mar 2025 19:06:02 +0200 Subject: [PATCH] Upd random in tests --- tests/test_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_summary.py b/tests/test_summary.py index 6e5f3b6..fcfd6c5 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -23,7 +23,7 @@ def test_random_observations(num_observations, summary, registry): labels = {"key": "value"} sum_observations = 0 for _ in range(num_observations): - value = random.randint(1, 1000) / 100 + value = random.uniform(0, 10) summary.labels(**labels).observe(value) sum_observations += value