summaryrefslogtreecommitdiff
path: root/opendc-simulator/opendc-simulator-compute/src/test/kotlin
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-09-29 22:05:03 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-10-03 17:17:39 +0200
commitd2f15fd7fd16922c11b0dcaa8807e8a321859773 (patch)
treeb39b16890f1d8106e691427c622637431bd2a54b /opendc-simulator/opendc-simulator-compute/src/test/kotlin
parentf00c5f3663a2bdbfacc2d6f812503f22f1ed26bb (diff)
refactor(simulator): Merge distributor and aggregator into switch
This change removes the distributor and aggregator interfaces in favour of a single switch interface. Since the switch interface is as powerful as both the distributor and aggregator, we don't need the latter two.
Diffstat (limited to 'opendc-simulator/opendc-simulator-compute/src/test/kotlin')
-rw-r--r--opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/kernel/SimHypervisorTest.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/kernel/SimHypervisorTest.kt b/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/kernel/SimHypervisorTest.kt
index 1f010338..8cd535ad 100644
--- a/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/kernel/SimHypervisorTest.kt
+++ b/opendc-simulator/opendc-simulator-compute/src/test/kotlin/org/opendc/simulator/compute/kernel/SimHypervisorTest.kt
@@ -103,8 +103,10 @@ internal class SimHypervisorTest {
println("Hypervisor finished")
}
yield()
+
val vm = hypervisor.createMachine(model)
vm.run(workloadA)
+
yield()
machine.close()