summaryrefslogtreecommitdiff
path: root/opendc-core/src/test
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-06 14:53:01 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-06 15:20:32 +0200
commit823bb2d217e6b35b1811b5f52016d8d9de09435d (patch)
tree20f05d965f13bde7dfcbc7a7e744a367d2442588 /opendc-core/src/test
parent36b36970623a503228c80b7148a83ca95e338334 (diff)
Implement time jumps to next event
This change implements a time jump to the next event in the queue if there are no events scheduled for the current tick.
Diffstat (limited to 'opendc-core/src/test')
-rw-r--r--opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt b/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
index 7d3c317e..50e22734 100644
--- a/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
+++ b/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
@@ -37,7 +37,7 @@ internal class SmokeTest {
val builder = AdjacencyListTopologyBuilder()
val topology = builder.build().apply {
val rack = node(Rack())
- val n = 1000000
+ val n = 100
// Create n machines in the rack
repeat(n) {
val machine = node(Machine())