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 ->
|
testCode.startCoroutine(Continuation(dispatcher) { result ->
|
||||||
dispatcher.assertThread()
|
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.release()
|
||||||
})
|
})
|
||||||
semaphore.acquire()
|
semaphore.acquire()
|
||||||
|
|||||||
@@ -29,8 +29,7 @@ class CoroutinesTest {
|
|||||||
val ref = switcher::run // callable reference
|
val ref = switcher::run // callable reference
|
||||||
ref.startCoroutine(Continuation(contextDispatcher) { result ->
|
ref.startCoroutine(Continuation(contextDispatcher) { result ->
|
||||||
contextDispatcher.assertThread()
|
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.release()
|
||||||
})
|
})
|
||||||
done.acquire()
|
done.acquire()
|
||||||
|
|||||||
Reference in New Issue
Block a user