lukecwik commented on a change in pull request #11455:
URL: https://github.com/apache/beam/pull/11455#discussion_r411505608



##########
File path: sdks/python/apache_beam/metrics/metric_test.py
##########
@@ -172,10 +172,14 @@ def process(self, element):
     # Verify user distribution counter.
     metric_results = res.metrics().query()
     matcher = MetricResultMatcher(
-        namespace='apache_beam.metrics.metric_test.SomeDoFn',
+        step='ApplyPardo',
+        namespace=hc.contains_string('SomeDoFn'),
         name='element_dist',
         committed=DistributionMatcher(
-            sum_value=10, count_value=4, min_value=1, max_value=4))
+            sum_value=hc.greater_than(0),
+            count_value=hc.greater_than(0),
+            min_value=hc.greater_than_or_equal_to(0),

Review comment:
       Why is min different then the others?
   
   I would expect that the same reason this needs to be >= 0 would be the same 
reason as the others.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to