mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 01:39:35 +08:00
Fix test
This commit is contained in:
parent
e98cd8685b
commit
abf367bd5c
@ -23,15 +23,15 @@ internal class SubscribingGetTest {
|
||||
|
||||
@Test
|
||||
fun testSyncFromEvent() {
|
||||
runBlockingWithTimeout(10000) {
|
||||
runBlockingWithTimeout(30_000) {
|
||||
suspendCancellableCoroutine<Unit> { cont ->
|
||||
launch {
|
||||
syncFromEvent(8000) { _: TestEvent ->
|
||||
syncFromEvent(20_000) { _: TestEvent ->
|
||||
cont.resume(Unit)
|
||||
}
|
||||
}
|
||||
launch {
|
||||
delay(4000)
|
||||
delay(5_000)
|
||||
TestEvent().broadcast()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user