From 756c8054602b7556407db2aa4e579e8e2dd70872 Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Sun, 6 Jun 2021 16:21:50 +0800 Subject: [PATCH] Fix typo --- .../kotlin/network/handler/SelectorNetworkHandlerTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mirai-core/src/commonTest/kotlin/network/handler/SelectorNetworkHandlerTest.kt b/mirai-core/src/commonTest/kotlin/network/handler/SelectorNetworkHandlerTest.kt index bbe7cce80..a0c399fb7 100644 --- a/mirai-core/src/commonTest/kotlin/network/handler/SelectorNetworkHandlerTest.kt +++ b/mirai-core/src/commonTest/kotlin/network/handler/SelectorNetworkHandlerTest.kt @@ -60,15 +60,15 @@ internal class SelectorNetworkHandlerTest : AbstractRealNetworkHandlerTest<Selec */ @Test fun `can recover on heartbeat failure`() = runBlockingUnit { - testReceiver { HeartbeatFailedException("test", null) } // NetworkException + testRecover { HeartbeatFailedException("test", null) } // NetworkException } @Test fun `cannot recover on other failures`() = runBlockingUnit { - testReceiver { IllegalStateException() } + testRecover { IllegalStateException() } } - private suspend fun testReceiver(exception: () -> Exception) { + private suspend fun testRecover(exception: () -> Exception) { val heartbeatScheduler = object : HeartbeatScheduler { lateinit var onHeartFailure: HeartbeatFailureHandler override fun launchJobsIn(