Commit 4bdfc342 authored by Benardi's avatar Benardi
Browse files

Remove error from CloudletSchedulerWithIops test and add FIXME flag.

parent 08313dee
......@@ -83,6 +83,7 @@ public class CloudletSchedulerWithIops {
final List<Cloudlet> finishedCloudlets = broker0.getCloudletFinishedList();
// FIXME Test seems to base itself on values of a particular execution
assertTrue(finishedCloudlets.get(0).getFinishTime() == 10.1);
assertTrue(finishedCloudlets.get(1).getFinishTime() == 13.509999999999982);
assertTrue(finishedCloudlets.get(2).getFinishTime() == 20.32999999999995);
......@@ -108,14 +109,17 @@ public class CloudletSchedulerWithIops {
final long ram = 2048; //in Megabytes
final long bw = 10000; //in Megabits/s
final long iops = 10000;
final long storage = 1000000; //in Megabytes
ResourceProvisioner ramProvisioner = new ResourceProvisionerSimple();
ResourceProvisioner bwProvisioner = new ResourceProvisionerSimple();
ResourceProvisioner iopsProvisioner = new ResourceProvisionerSimple();
VmScheduler vmScheduler = new VmSchedulerTimeShared();
Host host = new HostSimple(ram, bw, storage, peList);
Host host = new HostSimple(ram, iops, bw, storage, peList);
host
.setRamProvisioner(ramProvisioner)
.setBwProvisioner(bwProvisioner)
.setIopsProvisioner(iopsProvisioner)
.setVmScheduler(vmScheduler);
return host;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment