mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-09 19:50:27 +08:00
Remove redundant tests
This commit is contained in:
parent
b4b25be626
commit
813ef2b1e6
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user