From 9cf24c9a8d3e96a29d9b111081bc3369aadd490d Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 7 Jan 2021 17:25:40 +0100 Subject: Refactor workflow service to schedule tasks onto VMs This change updates the workflow service to delegate the resource scheduling logic to the virtualized resource provisioner. --- .../src/test/kotlin/org/opendc/simulator/compute/SimHypervisorTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'simulator/opendc-simulator/opendc-simulator-compute/src/test') diff --git a/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimHypervisorTest.kt b/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimHypervisorTest.kt index 78bd2940..e7fdd4b2 100644 --- a/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimHypervisorTest.kt +++ b/simulator/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/SimHypervisorTest.kt @@ -105,7 +105,7 @@ internal class SimHypervisorTest { ) val machine = SimBareMetalMachine(scope, clock, machineModel) - val hypervisor = SimHypervisor(scope, clock, listener) + val hypervisor = SimFairSharedHypervisor(scope, clock, listener) launch { machine.run(hypervisor) @@ -120,7 +120,7 @@ internal class SimHypervisorTest { assertAll( { Assertions.assertEquals(emptyList(), scope.uncaughtExceptions, "No errors") }, - { Assertions.assertEquals(2073600, listener.totalRequestedBurst, "Requested Burst does not match") }, + { Assertions.assertEquals(2082000, listener.totalRequestedBurst, "Requested Burst does not match") }, { Assertions.assertEquals(2013600, listener.totalGrantedBurst, "Granted Burst does not match") }, { Assertions.assertEquals(60000, listener.totalOvercommissionedBurst, "Overcommissioned Burst does not match") }, { Assertions.assertEquals(1200001, scope.currentTime) } -- cgit v1.2.3