Remove useless sub test in NettyHandlerEventTest

This commit is contained in:
Him188 2022-05-13 23:12:28 +01:00
parent c7ff26ab19
commit e0140c6272

View File

@ -12,7 +12,6 @@ package net.mamoe.mirai.internal.network.impl.netty
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.isActive
import net.mamoe.mirai.event.Event
import net.mamoe.mirai.event.broadcast
import net.mamoe.mirai.event.events.BotOfflineEvent
import net.mamoe.mirai.event.events.BotOnlineEvent
import net.mamoe.mirai.event.events.BotReloginEvent
@ -121,12 +120,6 @@ internal class NettyHandlerEventTest : AbstractNettyNHTest() {
}
}
@Test
fun testPreconditions() = runBlockingUnit {
assertEventBroadcasts<Event>(1) { BotOfflineEvent.Active(bot, null).broadcast() }
}
@Test
fun `BotOffline from OK TO CLOSED`() = runBlockingUnit {
bot.login()