Skip to content

Commit 3d17403

Browse files
committed
Make test reproducible
1 parent a7778ff commit 3d17403

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opentelemetry-sdk/tests/metrics/test_aggregation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# pylint: disable=protected-access
1616

1717
from math import inf
18-
from random import randint
1918
from time import sleep, time_ns
2019
from typing import Union
2120
from unittest import TestCase
@@ -630,7 +629,7 @@ def test_histogram(self):
630629
self.assertIsInstance(aggregation, _ExplicitBucketHistogramAggregation)
631630

632631
def test_histogram_with_advisory(self):
633-
boundaries = [randint(0, 1000)]
632+
boundaries = [1.0, 2.0, 3.0]
634633
aggregation = self.default_aggregation._create_aggregation(
635634
_Histogram(
636635
"name",

0 commit comments

Comments
 (0)