Skip to content

Commit ecd03bc

Browse files
committed
fix view instrument match test case
1 parent f6f6233 commit ecd03bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opentelemetry-sdk/tests/metrics/test_view_instrument_match.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,11 @@ def test_consume_measurement_with_exemplars(self):
610610

611611
# Verify that exemplars have been correctly stored and collected
612612
# As the default reservoir as only one bucket, it will retain
613-
# the last measurement as exemplar
613+
# either one of the measurements based on random selection
614614
self.assertEqual(len(data_points[0].exemplars), 1)
615615

616-
self.assertEqual(data_points[0].exemplars[0].value, 5.0)
616+
self.assertIn(data_points[0].exemplars[0].value, [4.0, 5.0])
617+
617618

618619

619620
class TestAlignedHistogramBucketExemplarReservoir(TestCase):

0 commit comments

Comments
 (0)