This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.14
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.14 by this push:
     new 0094cf4  tests: Extend wait time after interrupt (#4815) (#4866)
0094cf4 is described below

commit 0094cf44e189313fd9a7affdd1da78165578bfe2
Author: davidjumani <[email protected]>
AuthorDate: Thu Mar 25 14:34:08 2021 +0530

    tests: Extend wait time after interrupt (#4815) (#4866)
    
    Co-authored-by: dahn <[email protected]>
    
    Co-authored-by: dahn <[email protected]>
---
 .../java/com/cloud/utils/backoff/impl/ConstantTimeBackoffTest.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/utils/src/test/java/com/cloud/utils/backoff/impl/ConstantTimeBackoffTest.java 
b/utils/src/test/java/com/cloud/utils/backoff/impl/ConstantTimeBackoffTest.java
index d397511..d972a95 100644
--- 
a/utils/src/test/java/com/cloud/utils/backoff/impl/ConstantTimeBackoffTest.java
+++ 
b/utils/src/test/java/com/cloud/utils/backoff/impl/ConstantTimeBackoffTest.java
@@ -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());
     }
 

Reply via email to