Remove redundant tests

This commit is contained in:
Him188 2021-06-19 17:41:32 +08:00
parent b4b25be626
commit 813ef2b1e6

View File

@ -33,27 +33,6 @@ internal class SetStateTest : AbstractNettyNHTest() {
assertState(CLOSED) 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 @Test
fun `setState should ignore duplications OK to CLOSED to CLOSED`() { fun `setState should ignore duplications OK to CLOSED to CLOSED`() {
assertNotNull(network.setStateOK(channel)) assertNotNull(network.setStateOK(channel))