Commit 0376bc60 authored by Him188's avatar Him188

Fix test

parent 1c57e122
......@@ -21,23 +21,6 @@ import kotlin.test.assertFailsWith
internal class SubscribingGetTest {
@Test
fun testSyncFromEvent() {
runBlockingWithTimeout(30_000) {
suspendCancellableCoroutine<Unit> { cont ->
launch {
syncFromEvent(20_000) { _: TestEvent ->
cont.resume(Unit)
}
}
launch {
delay(5_000)
TestEvent().broadcast()
}
}
}
}
@Test
fun testSyncFromEventTimeout() {
runBlockingWithTimeout(500) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment