cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [cloudstack] branch master updated: CLOUDSTACK-10036: Decreasing timeout of failing unit test (#2228)
Date Tue, 08 Aug 2017 09:50:10 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 18ffd7b  CLOUDSTACK-10036: Decreasing timeout of failing unit test (#2228)
18ffd7b is described below

commit 18ffd7b199fdca2011ea4f86f9de7b379156a961
Author: Boris Stoyanov - a.k.a Bobby <bss.stoyanov@gmail.com>
AuthorDate: Tue Aug 8 12:50:07 2017 +0300

    CLOUDSTACK-10036: Decreasing timeout of failing unit test (#2228)
    
    This test occasionally fails on CentOS6 environments by failing to meet the 2000 milliseconds
threshold. Usually it ends up executing the method for ~1100. So decreasing the timeout to
1000 would prevent it from failing.
---
 .../org/apache/cloudstack/utils/hypervisor/HypervisorUtilsTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/src/test/java/org/apache/cloudstack/utils/hypervisor/HypervisorUtilsTest.java
b/utils/src/test/java/org/apache/cloudstack/utils/hypervisor/HypervisorUtilsTest.java
index f687767..62969c8 100644
--- a/utils/src/test/java/org/apache/cloudstack/utils/hypervisor/HypervisorUtilsTest.java
+++ b/utils/src/test/java/org/apache/cloudstack/utils/hypervisor/HypervisorUtilsTest.java
@@ -58,7 +58,7 @@ public class HypervisorUtilsTest {
         System.out.print("Testing block on modified files - ");
         String filePath = "./testfileinactive";
         int timeoutSeconds = 8;
-        long thresholdMilliseconds = 2000;
+        long thresholdMilliseconds = 1000;
         File file = new File(filePath);
 
         long startTime = setupcheckVolumeFileForActivityFile(file, _minFileSize);

-- 
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <commits@cloudstack.apache.org>'].

Mime
View raw message