Skip to content

Commit 54b9310

Browse files
committed
fix(gax): add assertion to test
1 parent f648950 commit 54b9310

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/retrying/RetryAlgorithmTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,10 @@ void testShouldRetry_resultFalseAndThrowableNotNull_callsTimed() {
213213
TimedAttemptSettings previousSettings = mock(TimedAttemptSettings.class);
214214
when(resultAlgorithm.shouldRetry(previousThrowable, previousResult)).thenReturn(false);
215215

216-
algorithm.shouldRetry(previousThrowable, previousResult, previousSettings);
216+
boolean shouldRetry =
217+
algorithm.shouldRetry(previousThrowable, previousResult, previousSettings);
217218

219+
assertFalse(shouldRetry);
218220
verify(timedAlgorithm).shouldRetry(previousSettings);
219221
}
220222

0 commit comments

Comments
 (0)