mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-24 14:30:09 +08:00
Fix typo
This commit is contained in:
parent
e7521028d1
commit
756c805460
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user