We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f61f90 commit 29da6deCopy full SHA for 29da6de
google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/metrics/MetricsTracerTest.java
@@ -237,7 +237,10 @@ public Object answer(InvocationOnMock invocation) throws Throwable {
237
getAggregationValueAsLong(
238
RpcViewConstants.BIGTABLE_READ_ROWS_FIRST_ROW_LATENCY_VIEW,
239
ImmutableMap.<TagKey, TagValue>of());
240
- assertThat(firstRowLatency).isIn(Range.closed(beforeSleep, elapsed - afterSleep));
+
241
+ // adding buffer time to the upper range to allow for a race between the emulator and the client
242
+ // recording the duration
243
+ assertThat(firstRowLatency).isIn(Range.closed(beforeSleep, elapsed - afterSleep / 2));
244
}
245
246
@Test
0 commit comments