diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-05-15 22:33:27 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2019-05-15 22:33:27 +0200 |
| commit | b0b1577ace36022faec1a4ed0369f1c1271d5ccd (patch) | |
| tree | 22744a52e9c7bb6d5b89abbbec05d6aa3db00c37 /odcsim-core/src/test | |
| parent | 720d1f433e0fed0ee48cbebdb8f995e5d5fc7405 (diff) | |
feat: Add unsafe helper method for casting ActorContext
This change adds a helper method for ActorContext to unsafely cast it to
an ActorContext of different type.
Diffstat (limited to 'odcsim-core/src/test')
| -rw-r--r-- | odcsim-core/src/test/kotlin/com/atlarge/odcsim/CoroutinesTest.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odcsim-core/src/test/kotlin/com/atlarge/odcsim/CoroutinesTest.kt b/odcsim-core/src/test/kotlin/com/atlarge/odcsim/CoroutinesTest.kt index d057024c..af7619e6 100644 --- a/odcsim-core/src/test/kotlin/com/atlarge/odcsim/CoroutinesTest.kt +++ b/odcsim-core/src/test/kotlin/com/atlarge/odcsim/CoroutinesTest.kt @@ -53,7 +53,7 @@ internal class CoroutinesTest { fun `should be able to invoke regular suspend methods`() { val ctx = mock<ActorContext<Unit>>() val behavior = suspending<Unit> { - suspendCoroutine<Unit> { cont -> } + suspendCoroutine<Unit> {} stopped() } val interpreter = BehaviorInterpreter(behavior) |
