summaryrefslogtreecommitdiff
path: root/opendc-omega/src/test
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-20 00:36:47 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-20 00:36:47 +0200
commita67b87be9e14d6d3c23e1e6aff5051176171e6ef (patch)
treee3c0e780a878d455796598809773309bbb9fec3f /opendc-omega/src/test
parent62895f71b7a7479652d9b86f7036b6580b40b7c7 (diff)
Improve simulation time management
Diffstat (limited to 'opendc-omega/src/test')
-rw-r--r--opendc-omega/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/opendc-omega/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt b/opendc-omega/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
index 1408d03f..4f48f20d 100644
--- a/opendc-omega/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
+++ b/opendc-omega/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
@@ -34,11 +34,11 @@ import org.junit.jupiter.api.Test
internal class SmokeTest {
@Test
fun smoke() {
+ val rack = Rack()
val builder = AdjacencyList.builder()
val topology = builder.construct {
- val rack = Rack()
add(rack)
- val n = 1000
+ val n = 100
// Create n machines in the rack
repeat(n) {
val machine = Machine()
@@ -55,7 +55,7 @@ internal class SmokeTest {
}
}
- val simulator = OmegaKernel(topology)
- simulator.run()
+ val simulation = OmegaKernel.create(topology)
+ simulation.run()
}
}