cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 2c110ab
Date Wed, 29 Jul 2015 09:41:59 GMT
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 <daan.hoogland@gmail.com>
Authored: Wed Jul 29 10:46:30 2015 +0200
Committer: Daan Hoogland <daan.hoogland@gmail.com>
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


Mime
View raw message