From 158185f03e28fecddc58d0d2aae2e960e96ea480 Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Wed, 13 Nov 2024 18:05:22 -0500 Subject: [PATCH] core: include metric name in error message (#2412) Change-Id: I8e7578fa4c5af6e8dcde04201ec7d6aa9c8f8762 --- .../google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java index 636042f5d9..79d27b7fa3 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java @@ -360,6 +360,7 @@ private ListTimeSeriesResponse verifyMetricsArePublished( private void verifyMetricsWithMetricsReader( ListTimeSeriesResponse response, MetricData dataFromReader) { + for (TimeSeries ts : response.getTimeSeriesList()) { Map attributesMap = ImmutableMap.builder() @@ -399,7 +400,8 @@ private void verifyMetricsWithMetricsReader( if (point.size() > 0) { long actualValue = (long) point.get(0).getValue().getDistributionValue().getMean(); assertWithMessage( - "actual value does not match expected value, actual value " + ts.getMetric().getType() + + " actual value does not match expected value, actual value " + actualValue + " expected value " + expectedValue