Uncommented coroutines tests that were failing due to inline class bugs

This commit is contained in:
Roman Elizarov
2018-07-18 15:49:33 +03:00
parent 094cb6be1d
commit f5193802fc
2 changed files with 2 additions and 4 deletions
@@ -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()