mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-01 03:50:18 +08:00
Remove useless sub test in NettyHandlerEventTest
This commit is contained in:
parent
c7ff26ab19
commit
e0140c6272
@ -12,7 +12,6 @@ package net.mamoe.mirai.internal.network.impl.netty
|
|||||||
import kotlinx.coroutines.CompletableDeferred
|
import kotlinx.coroutines.CompletableDeferred
|
||||||
import kotlinx.coroutines.isActive
|
import kotlinx.coroutines.isActive
|
||||||
import net.mamoe.mirai.event.Event
|
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.BotOfflineEvent
|
||||||
import net.mamoe.mirai.event.events.BotOnlineEvent
|
import net.mamoe.mirai.event.events.BotOnlineEvent
|
||||||
import net.mamoe.mirai.event.events.BotReloginEvent
|
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
|
@Test
|
||||||
fun `BotOffline from OK TO CLOSED`() = runBlockingUnit {
|
fun `BotOffline from OK TO CLOSED`() = runBlockingUnit {
|
||||||
bot.login()
|
bot.login()
|
||||||
|
Loading…
Reference in New Issue
Block a user