Repository: cloudstack
Updated Branches:
  refs/heads/master 5adfc1c78 -> 2c110ab70


unittesting: test resolution is not guaranteed to be exact


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2c110ab7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2c110ab7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2c110ab7

Branch: refs/heads/master
Commit: 2c110ab70949d49da1552abc299a3413bdc61b37
Parents: 5adfc1c
Author: Daan Hoogland <[email protected]>
Authored: Wed Jul 29 10:46:30 2015 +0200
Committer: Daan Hoogland <[email protected]>
Committed: Wed Jul 29 10:49:16 2015 +0200

----------------------------------------------------------------------
 utils/test/com/cloud/utils/TestProfiler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2c110ab7/utils/test/com/cloud/utils/TestProfiler.java
----------------------------------------------------------------------
diff --git a/utils/test/com/cloud/utils/TestProfiler.java 
b/utils/test/com/cloud/utils/TestProfiler.java
index 6861f06..2306cd7 100644
--- a/utils/test/com/cloud/utils/TestProfiler.java
+++ b/utils/test/com/cloud/utils/TestProfiler.java
@@ -111,6 +111,6 @@ public class TestProfiler extends Log4jEnabledTestCase {
 
         // We are measuring the elapsed time in 2 consecutive calls of 
System.nanoTime()
         // That's the same as 0.002 milliseconds or 2000 nanoseconds.
-        Assert.assertTrue("It took more than 2 microseconds between 2 
consecutive calls to System.nanoTime().", nanoTime2 - nanoTime1 <= 2000);
+        Assert.assertTrue("Expected exactly 2 but it took more than 3 
microseconds between 2 consecutive calls to System.nanoTime().", nanoTime2 - 
nanoTime1 <= 3000);
     }
 }
\ No newline at end of file

Reply via email to