Skip to content

Commit 23e97cb

Browse files
authored
fix: fix MetricTracerTest to rebase on head (#581)
1 parent 8d71020 commit 23e97cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,15 @@ public void testInvalidRequest() throws InterruptedException {
338338
Thread.sleep(100);
339339
// Verify that the latency is recorded with an error code (in this case UNKNOWN)
340340
long attemptLatency =
341-
getAggregationValueAsLong(
341+
StatsTestUtils.getAggregationValueAsLong(
342+
localStats,
342343
RpcViewConstants.BIGTABLE_ATTEMPT_LATENCY_VIEW,
343344
ImmutableMap.of(
344345
RpcMeasureConstants.BIGTABLE_OP, TagValue.create("Bigtable.MutateRows"),
345-
RpcMeasureConstants.BIGTABLE_STATUS, TagValue.create("UNKNOWN")));
346+
RpcMeasureConstants.BIGTABLE_STATUS, TagValue.create("UNKNOWN")),
347+
PROJECT_ID,
348+
INSTANCE_ID,
349+
APP_PROFILE_ID);
346350
assertThat(attemptLatency).isAtLeast(0);
347351
}
348352
}

0 commit comments

Comments
 (0)