summaryrefslogtreecommitdiff
path: root/opendc-common/src/test
diff options
context:
space:
mode:
authorDante Niewenhuis <d.niewenhuis@hotmail.com>2023-12-14 21:13:40 +0100
committerGitHub <noreply@github.com>2023-12-14 21:13:40 +0100
commitc57468c5040a838de6901972b6e49a8548d908d6 (patch)
treedd41f51a5ea7a8c8c239081c6af9520ae323d3de /opendc-common/src/test
parent05215c12682609f8b7722089f0ebb29e310da4dc (diff)
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
Diffstat (limited to 'opendc-common/src/test')
-rw-r--r--opendc-common/src/test/kotlin/org/opendc/common/DispatcherCoroutineDispatcherTest.kt10
1 files changed, 10 insertions, 0 deletions
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()) {