diff --git a/mirai-core/src/commonTest/kotlin/network/impl/netty/SetStateTest.kt b/mirai-core/src/commonTest/kotlin/network/impl/netty/SetStateTest.kt index b5514dc82..9e89eb612 100644 --- a/mirai-core/src/commonTest/kotlin/network/impl/netty/SetStateTest.kt +++ b/mirai-core/src/commonTest/kotlin/network/impl/netty/SetStateTest.kt @@ -33,27 +33,6 @@ internal class SetStateTest : AbstractNettyNHTest() { assertState(CLOSED) } - @Test - fun `setState should ignore duplications CONNECTIN to CLOSED to CLOSED`() { - assertNotNull(network.setStateConnecting()) - assertState(CONNECTING) - assertNotNull(network.setStateClosed(IllegalStateException("1"))) - assertState(CLOSED) - assertNull(network.setStateClosed(IllegalStateException("2"))) - assertState(CLOSED) - } - - - @Test - fun `setState should ignore duplications LOADING to CLOSED to CLOSED`() { - assertNotNull(network.setStateLoading(channel)) - assertState(LOADING) - assertNotNull(network.setStateClosed(IllegalStateException("1"))) - assertState(CLOSED) - assertNull(network.setStateClosed(IllegalStateException("2"))) - assertState(CLOSED) - } - @Test fun `setState should ignore duplications OK to CLOSED to CLOSED`() { assertNotNull(network.setStateOK(channel))