From f24c53dd13c40f46ca03b040bda5fc992d6fa9e3 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 19 May 2020 23:20:18 +0200 Subject: test: Add test to verify slice batching behavior --- .../kotlin/com/atlarge/opendc/experiments/sc20/Sc20IntegrationTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'opendc/opendc-experiments-sc20/src') diff --git a/opendc/opendc-experiments-sc20/src/test/kotlin/com/atlarge/opendc/experiments/sc20/Sc20IntegrationTest.kt b/opendc/opendc-experiments-sc20/src/test/kotlin/com/atlarge/opendc/experiments/sc20/Sc20IntegrationTest.kt index 0a4a56a8..68c2cbc5 100644 --- a/opendc/opendc-experiments-sc20/src/test/kotlin/com/atlarge/opendc/experiments/sc20/Sc20IntegrationTest.kt +++ b/opendc/opendc-experiments-sc20/src/test/kotlin/com/atlarge/opendc/experiments/sc20/Sc20IntegrationTest.kt @@ -136,6 +136,7 @@ class Sc20IntegrationTest { failureDomain?.cancel() scheduler.terminate() + monitor.close() } runSimulation() @@ -166,7 +167,6 @@ class Sc20IntegrationTest { ) scheduler = res.second - attachMonitor(scheduler, monitor) processTrace( traceReader, @@ -178,6 +178,7 @@ class Sc20IntegrationTest { println("Finish SUBMIT=${scheduler.submittedVms} FAIL=${scheduler.unscheduledVms} QUEUE=${scheduler.queuedVms} RUNNING=${scheduler.runningVms} FINISH=${scheduler.finishedVms}") scheduler.terminate() + monitor.close() } runSimulation() @@ -241,6 +242,7 @@ class Sc20IntegrationTest { totalOvercommissionedBurst += overcommissionedBurst totalInterferedBurst += interferedBurst } + override fun close() {} } } -- cgit v1.2.3