Uncommented coroutines tests that were failing due to inline class bugs
This commit is contained in:
@@ -109,8 +109,7 @@ class CoroutinesMigrationTest {
|
||||
}
|
||||
testCode.startCoroutine(Continuation(dispatcher) { result ->
|
||||
dispatcher.assertThread()
|
||||
// todo: below does not work due to a bug in inline classes
|
||||
// assertEquals("DONE", result.getOrThrow())
|
||||
assertEquals("DONE", result.getOrThrow())
|
||||
semaphore.release()
|
||||
})
|
||||
semaphore.acquire()
|
||||
|
||||
@@ -29,8 +29,7 @@ class CoroutinesTest {
|
||||
val ref = switcher::run // callable reference
|
||||
ref.startCoroutine(Continuation(contextDispatcher) { result ->
|
||||
contextDispatcher.assertThread()
|
||||
// todo: below does not work due to a bug in inline classes
|
||||
// assertEquals(42, result.getOrThrow())
|
||||
assertEquals(42, result.getOrThrow())
|
||||
done.release()
|
||||
})
|
||||
done.acquire()
|
||||
|
||||
Reference in New Issue
Block a user