Skip to content

Commit 00eadd3

Browse files
authored
tests: prevent multiple retries quickly after each other (#268)
1 parent f89da6a commit 00eadd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-cloud-spanner/src/test/java/com/google/cloud/spanner/InstanceAdminGaxTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ public void setUp() throws Exception {
224224
RetrySettings retrySettingsWithLowTimeout =
225225
RetrySettings.newBuilder()
226226
.setInitialRetryDelay(Duration.ofMillis(1L))
227-
.setMaxRetryDelay(Duration.ofMillis(1L))
227+
.setMaxRetryDelay(Duration.ofMillis(1000L))
228228
.setInitialRpcTimeout(Duration.ofMillis(20L))
229229
.setMaxRpcTimeout(Duration.ofMillis(200L))
230-
.setRetryDelayMultiplier(1.3)
230+
.setRetryDelayMultiplier(1000.0d)
231231
.setMaxAttempts(10)
232232
.setTotalTimeout(Duration.ofMillis(200L))
233233
.build();

0 commit comments

Comments
 (0)