From 23e97cb308403b35fbe972b08048d0e59423e694 Mon Sep 17 00:00:00 2001 From: Mattie Fu Date: Thu, 17 Dec 2020 13:02:35 -0500 Subject: [PATCH] fix: fix MetricTracerTest to rebase on head (#581) --- .../bigtable/data/v2/stub/metrics/MetricsTracerTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java index bc6166f79..eb7bdaa99 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java @@ -338,11 +338,15 @@ public void testInvalidRequest() throws InterruptedException { Thread.sleep(100); // Verify that the latency is recorded with an error code (in this case UNKNOWN) long attemptLatency = - getAggregationValueAsLong( + StatsTestUtils.getAggregationValueAsLong( + localStats, RpcViewConstants.BIGTABLE_ATTEMPT_LATENCY_VIEW, ImmutableMap.of( RpcMeasureConstants.BIGTABLE_OP, TagValue.create("Bigtable.MutateRows"), - RpcMeasureConstants.BIGTABLE_STATUS, TagValue.create("UNKNOWN"))); + RpcMeasureConstants.BIGTABLE_STATUS, TagValue.create("UNKNOWN")), + PROJECT_ID, + INSTANCE_ID, + APP_PROFILE_ID); assertThat(attemptLatency).isAtLeast(0); } }