Skip to content

Commit bdf50f6

Browse files
committed
Remove assertion
The assertion is built on the assumption that cpuinfo_max_freq is readable by user, which may not be universaly true.
1 parent ab15653 commit bdf50f6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ public List<DiskDef> getDisks(Connect conn, String vmName) {
452452
public void getCpuSpeed() {
453453
Assume.assumeTrue(SystemUtils.IS_OS_LINUX);
454454
NodeInfo nodeInfo = Mockito.mock(NodeInfo.class);
455-
long cpuSpeed = LibvirtComputingResource.getCpuSpeed(nodeInfo);
456-
Assert.assertTrue(cpuSpeed > 0);
455+
LibvirtComputingResource.getCpuSpeed(nodeInfo);
457456
}
458457
}

0 commit comments

Comments
 (0)