cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ko...@apache.org
Subject git commit: updated refs/heads/master to bdf50f6
Date Mon, 10 Feb 2014 18:58:14 GMT
Updated Branches:
  refs/heads/master ab15653d6 -> bdf50f6d2


Remove assertion

The assertion is built on the assumption that cpuinfo_max_freq is readable by user, which
may not be universaly true.


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

Branch: refs/heads/master
Commit: bdf50f6d2488004068193bc044cd3b24e447b82d
Parents: ab15653
Author: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Authored: Mon Feb 10 19:49:55 2014 +0100
Committer: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Committed: Mon Feb 10 19:56:54 2014 +0100

----------------------------------------------------------------------
 .../hypervisor/kvm/resource/LibvirtComputingResourceTest.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bdf50f6d/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
b/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
index 6fac2b5..bf4546c 100644
--- a/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
+++ b/plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java
@@ -452,7 +452,6 @@ public class LibvirtComputingResourceTest {
     public void getCpuSpeed() {
         Assume.assumeTrue(SystemUtils.IS_OS_LINUX);
         NodeInfo nodeInfo = Mockito.mock(NodeInfo.class);
-        long cpuSpeed = LibvirtComputingResource.getCpuSpeed(nodeInfo);
-        Assert.assertTrue(cpuSpeed > 0);
+        LibvirtComputingResource.getCpuSpeed(nodeInfo);
     }
 }


Mime
View raw message