Skip to content

Commit

Permalink
fix: fix MetricTracerTest to rebase on head
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Dec 17, 2020
1 parent 8d71020 commit 0a3ea3a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 0a3ea3a

Please sign in to comment.