Skip to content

Commit 146c824

Browse files
authored
fix: fix flaky test (#1293)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-bigtable/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> ☕️ If you write sample code, please follow the [samples format]( https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
1 parent 1d75ec6 commit 146c824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public void testMutateRowAttempts() {
331331
// calls releaseWaiters(). onOperationComplete() is called in TracerFinisher which will be
332332
// called after the mutateRow call is returned. So there's a race between when the call returns
333333
// and when the record() is called in onOperationCompletion().
334-
verify(statsRecorderWrapper, timeout(20).times(fakeService.getAttemptCounter().get() + 1))
334+
verify(statsRecorderWrapper, timeout(50).times(fakeService.getAttemptCounter().get() + 1))
335335
.record(status.capture(), tableId.capture(), zone.capture(), cluster.capture());
336336
assertThat(zone.getAllValues()).containsExactly(UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED);
337337
assertThat(cluster.getAllValues()).containsExactly(UNDEFINED, UNDEFINED, UNDEFINED, UNDEFINED);

0 commit comments

Comments
 (0)