tests: Extend wait time after interrupt (#4815) (#4866)

Co-authored-by: dahn <daan.hoogland@gmail.com>

Co-authored-by: dahn <daan.hoogland@gmail.com>
This commit is contained in:
davidjumani 2021-03-25 14:34:08 +05:30 committed by GitHub
parent 025b654b5d
commit 0094cf44e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,8 @@ public class ConstantTimeBackoffTest {
Thread.sleep(100);
Assert.assertFalse(backoff.getWaiters().isEmpty());
waitThread.interrupt();
Thread.sleep(100);
final int TIMEOUT_AFTER_INTERUPT = 500;
Thread.sleep(TIMEOUT_AFTER_INTERUPT);
Assert.assertTrue(backoff.getWaiters().isEmpty());
}