From b6153bbf24970a5b4ba103de00e440911dcc8694 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Mon, 17 Jun 2024 06:14:32 +0200 Subject: Fixed CPU limit problem (#234) * Fixed a problem which caused the CPU limit to be much lower than it should be. AllocationPolicy is now properly exposed to the user * Fixed tests * spotless kotlin --- .../src/test/kotlin/org/opendc/workflow/service/WorkflowServiceTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opendc-workflow/opendc-workflow-service/src') 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 45d6414b..9da664bb 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 @@ -120,7 +120,7 @@ internal class WorkflowServiceTest { }, { assertEquals(0, metrics.tasksRunning, "Not all started tasks finished") }, { assertEquals(metrics.tasksSubmitted, metrics.tasksFinished, "Not all started tasks finished") }, - { assertEquals(45975707L, timeSource.millis()) { "Total duration incorrect" } }, + { assertEquals(1468774, timeSource.millis()) { "Total duration incorrect" } }, ) } } -- cgit v1.2.3