You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2021/03/19 10:15:07 UTC

[cloudstack] branch 4.15 updated: tests: Extend wait time after interrupt (#4815)

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

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


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

commit 58954354fdd440ebb452fd77860481aff3fea15b
Author: davidjumani <dj...@gmail.com>
AuthorDate: Fri Mar 19 15:44:39 2021 +0530

    tests: Extend wait time after interrupt (#4815)
    
    Co-authored-by: dahn <da...@gmail.com>
---
 .../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 e1b029e..d537641 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
@@ -43,7 +43,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());
     }