We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f648950 commit 54b9310Copy full SHA for 54b9310
1 file changed
sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/retrying/RetryAlgorithmTest.java
@@ -213,8 +213,10 @@ void testShouldRetry_resultFalseAndThrowableNotNull_callsTimed() {
213
TimedAttemptSettings previousSettings = mock(TimedAttemptSettings.class);
214
when(resultAlgorithm.shouldRetry(previousThrowable, previousResult)).thenReturn(false);
215
216
- algorithm.shouldRetry(previousThrowable, previousResult, previousSettings);
+ boolean shouldRetry =
217
+ algorithm.shouldRetry(previousThrowable, previousResult, previousSettings);
218
219
+ assertFalse(shouldRetry);
220
verify(timedAlgorithm).shouldRetry(previousSettings);
221
}
222
0 commit comments