From c57468c5040a838de6901972b6e49a8548d908d6 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Thu, 14 Dec 2023 21:13:40 +0100 Subject: Updated tests to run successfully (#187) * made sure all tests run * fixed typo * executed spotlessApply * added back web-server tests * updated SimTraceWorkloadTest * commented CapelinRunneer and GreenifierRunner tests * commented one SimTraceWorkloadTest * altered codecov execution * changed codecov --- .../org/opendc/common/DispatcherCoroutineDispatcherTest.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'opendc-common/src/test') diff --git a/opendc-common/src/test/kotlin/org/opendc/common/DispatcherCoroutineDispatcherTest.kt b/opendc-common/src/test/kotlin/org/opendc/common/DispatcherCoroutineDispatcherTest.kt index af8a7857..01b3d2fc 100644 --- a/opendc-common/src/test/kotlin/org/opendc/common/DispatcherCoroutineDispatcherTest.kt +++ b/opendc-common/src/test/kotlin/org/opendc/common/DispatcherCoroutineDispatcherTest.kt @@ -36,6 +36,10 @@ import org.opendc.simulator.kotlin.runSimulation * Test suite for [DispatcherCoroutineDispatcher]. */ class DispatcherCoroutineDispatcherTest { + + /** + * Tests if a dispatcher yields the correct time + */ @Test fun testYield() = runSimulation { withContext(dispatcher.asCoroutineDispatcher()) { @@ -45,6 +49,9 @@ class DispatcherCoroutineDispatcherTest { } } + /** + * Tests if a dispatcher correctly delays + */ @Test fun testDelay() = runSimulation { withContext(dispatcher.asCoroutineDispatcher()) { @@ -54,6 +61,9 @@ class DispatcherCoroutineDispatcherTest { } } + /** + * Tests if a dispatcher correctly times out + */ @Test fun testTimeout() = runSimulation { withContext(dispatcher.asCoroutineDispatcher()) { -- cgit v1.2.3