This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/trunk by this push:
new bb0037a8 Add scope context for validate_nominal assertions
bb0037a8 is described below
commit bb0037a8d06d566cb8d1f86261417d3357f8c19a
Author: Brandon Williams <[email protected]>
AuthorDate: Tue Jul 25 09:26:37 2023 -0500
Add scope context for validate_nominal assertions
Patch by brandonwilliams; reviewed by adelapena for CASSANDRA-18265
---
client_request_metrics_test.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/client_request_metrics_test.py b/client_request_metrics_test.py
index ec45dc20..7286ccbc 100644
--- a/client_request_metrics_test.py
+++ b/client_request_metrics_test.py
@@ -157,9 +157,9 @@ class TestClientRequestMetrics(Tester):
global_diff = global_updated.diff(global_baseline)
cl_diff = cl_updated.diff(cl_baseline)
- for diff in [global_diff, cl_diff]:
- assert diff['TotalLatency.Count'] > 0, diff.scope
- assert diff['Latency.Count'] == query_count, diff.scope
+ for diff, scope in [(global_diff, global_scope), (cl_diff, cl_scope)]:
+ assert diff['TotalLatency.Count'] > 0, scope
+ assert diff['Latency.Count'] == query_count, scope
other_updated = [metric_class(scope_for_cl(global_scope, c)) for c in
other_cls]
for updated, baseline in zip(other_updated, other_baselines):
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]