Skip to content

Commit

Permalink
Fix flaky test TestRetryDriver
Browse files Browse the repository at this point in the history
Also, minor improvement in TestRetryDriver#testBackoffTimeCapped.
  • Loading branch information
caithagoras0 authored and mbasmanova committed Dec 4, 2019
1 parent 70ab7ac commit bc565eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static org.testng.Assert.assertEquals;

@Test(singleThreaded = true)
public class TestRetryDriver
{
private static class MockOperation
Expand Down Expand Up @@ -108,7 +109,6 @@ public void testNonRetryableFailure()
@Test(timeOut = 5000)
public void testBackoffTimeCapped()
{
verificationContext = new VerificationContext();
RetryDriver retryDriver = new RetryDriver<>(
new RetryConfig()
.setMaxAttempts(5)
Expand Down

0 comments on commit bc565eb

Please sign in to comment.