Skip to content
Permalink
Browse files
fix: fix MetricTracerTest to rebase on head (#581)
  • Loading branch information
mutianf committed Dec 17, 2020
1 parent 8d71020 commit 23e97cb308403b35fbe972b08048d0e59423e694
Showing with 6 additions and 2 deletions.
  1. +6 −2 ...loud-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);
}
}

0 comments on commit 23e97cb

Please sign in to comment.