Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f53e47a

Browse files
committed
[BEAM-4775] Use result property of MetricResult in load tests
Using committed property could have been a source of an error if runner doesn't support committed metrics.
1 parent f1944c0 commit f53e47a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sdks/python/apache_beam/testing/load_tests/load_test_metrics_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ def _prepare_runtime_metrics(self, distributions):
312312
min_values = []
313313
max_values = []
314314
for dist in distributions:
315-
min_values.append(dist.committed.min)
316-
max_values.append(dist.committed.max)
315+
min_values.append(dist.result.min)
316+
max_values.append(dist.result.max)
317317
# finding real start
318318
min_value = min(min_values)
319319
# finding real end

0 commit comments

Comments
 (0)