From abf367bd5cd7a6374c3b8a25edafd10faee27778 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 22 May 2020 12:33:17 +0800 Subject: [PATCH] Fix test --- .../kotlin/net/mamoe/mirai/message/SubscribingGetTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirai-core/src/jvmTest/kotlin/net/mamoe/mirai/message/SubscribingGetTest.kt b/mirai-core/src/jvmTest/kotlin/net/mamoe/mirai/message/SubscribingGetTest.kt index f28fd34c6..1b17efdd1 100644 --- a/mirai-core/src/jvmTest/kotlin/net/mamoe/mirai/message/SubscribingGetTest.kt +++ b/mirai-core/src/jvmTest/kotlin/net/mamoe/mirai/message/SubscribingGetTest.kt @@ -23,15 +23,15 @@ internal class SubscribingGetTest { @Test fun testSyncFromEvent() { - runBlockingWithTimeout(10000) { + runBlockingWithTimeout(30_000) { suspendCancellableCoroutine { cont -> launch { - syncFromEvent(8000) { _: TestEvent -> + syncFromEvent(20_000) { _: TestEvent -> cont.resume(Unit) } } launch { - delay(4000) + delay(5_000) TestEvent().broadcast() } }