Skip to content

Commit 3b53f3f

Browse files
try to deflake test
Change-Id: I98ad5c58e33f35f6165db39963467b17cf7d8745
1 parent a600c8c commit 3b53f3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ public void cleanup() {
100100

101101
@Test
102102
public void testLatenciesAreRecorded() throws Exception {
103-
DynamicFlowControlStats stats = new DynamicFlowControlStats();
104103
DynamicFlowControlCallable callableToTest =
105104
new DynamicFlowControlCallable(
106-
innerCallable, flowController, stats, TARGET_LATENCY_MS, ADJUSTING_INTERVAL_MS);
105+
// significantly increase targetLatency to ensure that slow CI runners dont accidentally
106+
// trigger a resize
107+
innerCallable, flowController, stats, TARGET_LATENCY_MS * 10, ADJUSTING_INTERVAL_MS);
107108
Map<String, List<String>> extraHeaders = new HashMap<>();
108109
extraHeaders.put(LATENCY_HEADER, Arrays.asList("5"));
109110
ApiCallContext newContext = context.withExtraHeaders(extraHeaders);

0 commit comments

Comments
 (0)