Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Cavalcante
cloudsimplus
Commits
4bdfc342
Commit
4bdfc342
authored
Jul 04, 2018
by
Benardi
Browse files
Remove error from CloudletSchedulerWithIops test and add FIXME flag.
parent
08313dee
Changes
1
Hide whitespace changes
Inline
Side-by-side
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/schedulers/cloudlet/CloudletSchedulerWithIops.java
View file @
4bdfc342
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment