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.
This commit is contained in:
Boris Stoyanov - a.k.a Bobby 2017-08-08 12:50:07 +03:00 committed by Rohit Yadav
parent d7f5b929b2
commit 18ffd7b199

View File

@ -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);