diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-10-17 22:03:02 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-10-28 15:01:55 +0200 |
| commit | d5aed4b1e6e5548728c5978e3b46d1472b62e791 (patch) | |
| tree | 5ceb12076922ab5e3c724a451150b2b74791314b /opendc-workflow/opendc-workflow-service/src/test | |
| parent | eb105ae96191d99745c145e5ef0959f5e5c77fc4 (diff) | |
refactor(compute/sim): Use workload chaining for boot delay
This change updates the implementation of `SimHost` to use workload
chaining for modelling boot delays. Previously, this was implemented by
sleeping 1 millisecond using Kotlin coroutines. With this change, we
remove the need for coroutines and instead use the `SimDurationWorkload`
to model the boot delay.
In the future, we envision a user-supplied stochastic boot model to
model the boot delay for VM instances.
Diffstat (limited to 'opendc-workflow/opendc-workflow-service/src/test')
| -rw-r--r-- | opendc-workflow/opendc-workflow-service/src/test/kotlin/org/opendc/workflow/service/WorkflowServiceTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-workflow/opendc-workflow-service/src/test/kotlin/org/opendc/workflow/service/WorkflowServiceTest.kt b/opendc-workflow/opendc-workflow-service/src/test/kotlin/org/opendc/workflow/service/WorkflowServiceTest.kt index c7123000..b165418a 100644 --- a/opendc-workflow/opendc-workflow-service/src/test/kotlin/org/opendc/workflow/service/WorkflowServiceTest.kt +++ b/opendc-workflow/opendc-workflow-service/src/test/kotlin/org/opendc/workflow/service/WorkflowServiceTest.kt @@ -119,7 +119,7 @@ internal class WorkflowServiceTest { }, { assertEquals(0, metrics.tasksRunning, "Not all started tasks finished") }, { assertEquals(metrics.tasksSubmitted, metrics.tasksFinished, "Not all started tasks finished") }, - { assertEquals(46102707L, clock.millis()) { "Total duration incorrect" } } + { assertEquals(45977707L, clock.millis()) { "Total duration incorrect" } } ) } } |
