From b0b1577ace36022faec1a4ed0369f1c1271d5ccd Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 15 May 2019 22:33:27 +0200 Subject: 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. --- odcsim-core/src/test/kotlin/com/atlarge/odcsim/CoroutinesTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odcsim-core/src/test') 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>() val behavior = suspending { - suspendCoroutine { cont -> } + suspendCoroutine {} stopped() } val interpreter = BehaviorInterpreter(behavior) -- cgit v1.2.3