Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle TimeoutCancellationException when resuming connection #2505

Merged
merged 4 commits into from
Feb 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use yield() instead of delay
  • Loading branch information
sandtechnology committed Feb 19, 2023
commit 74e33958e74b85138941357ca27768a24f4abb6d
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ internal class CommonNHBotNormalLoginTest : AbstractCommonNHTest() {
bot.login()
bot.network.close(HeartbeatFailedException("Heartbeat Timeout", RuntimeException("Timeout stub"), true))
eventDispatcher.joinBroadcast()
delay(1000L) // auto resume in BotOfflineEventMonitor
yield() // auto resume in BotOfflineEventMonitor
eventDispatcher.joinBroadcast()
assertState(NetworkHandler.State.OK)
}
Expand Down