mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-24 14:30:09 +08:00
?
This commit is contained in:
parent
9ad8dfa79b
commit
5aa85ba05c
@ -23,15 +23,15 @@ internal class SubscribingGetTest {
|
||||
|
||||
@Test
|
||||
fun testSyncFromEvent() {
|
||||
runBlockingWithTimeout(1000) {
|
||||
runBlockingWithTimeout(5000) {
|
||||
suspendCancellableCoroutine<Unit> { cont ->
|
||||
launch {
|
||||
syncFromEvent(500) { _: TestEvent ->
|
||||
syncFromEvent(3000) { _: TestEvent ->
|
||||
cont.resume(Unit)
|
||||
}
|
||||
}
|
||||
launch {
|
||||
delay(200)
|
||||
delay(1000)
|
||||
TestEvent().broadcast()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user