From 7358d00bcf7656af0fcca66b80a00683d2e992f2 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 26 Aug 2021 08:01:35 +0800 Subject: [PATCH] Allow `NetworkHandler.State.LOADING` in `SelectorRecoveryTest` --- .../commonTest/kotlin/network/handler/SelectorRecoveryTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonTest/kotlin/network/handler/SelectorRecoveryTest.kt b/mirai-core/src/commonTest/kotlin/network/handler/SelectorRecoveryTest.kt index d90bb7843..3053b6666 100644 --- a/mirai-core/src/commonTest/kotlin/network/handler/SelectorRecoveryTest.kt +++ b/mirai-core/src/commonTest/kotlin/network/handler/SelectorRecoveryTest.kt @@ -40,7 +40,7 @@ internal class SelectorRecoveryTest : AbstractNettyNHTestWithSelector() { testRecoverWhenHeartbeatFailWith { IOException("test IO ex") } // BotOfflineMonitor immediately launches a recovery which is UNDISPATCHED, so connection is immediately recovered. - assertState(NetworkHandler.State.CONNECTING, NetworkHandler.State.OK) + assertState(NetworkHandler.State.CONNECTING, NetworkHandler.State.LOADING, NetworkHandler.State.OK) } /**