mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
tests: Extend wait time after interrupt (#4815)
Co-authored-by: dahn <daan.hoogland@gmail.com>
This commit is contained in:
parent
faf27e2b39
commit
58954354fd
@ -43,7 +43,8 @@ public class ConstantTimeBackoffTest {
|
|||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
Assert.assertFalse(backoff.getWaiters().isEmpty());
|
Assert.assertFalse(backoff.getWaiters().isEmpty());
|
||||||
waitThread.interrupt();
|
waitThread.interrupt();
|
||||||
Thread.sleep(100);
|
final int TIMEOUT_AFTER_INTERUPT = 500;
|
||||||
|
Thread.sleep(TIMEOUT_AFTER_INTERUPT);
|
||||||
Assert.assertTrue(backoff.getWaiters().isEmpty());
|
Assert.assertTrue(backoff.getWaiters().isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user