Use IRCClient.quit() instead of raw queueing
This commit is contained in:
@@ -52,7 +52,7 @@ class IrcClientTest {
|
|||||||
fun shutdown() =
|
fun shutdown() =
|
||||||
runBlocking {
|
runBlocking {
|
||||||
logger.info { "Closing server." }
|
logger.info { "Closing server." }
|
||||||
client.queueMessage(Message.Die())
|
client.quit("")
|
||||||
client.waitForNext<ServerMessage.Notice>()
|
client.waitForNext<ServerMessage.Notice>()
|
||||||
processes.forEach { it.destroy() }
|
processes.forEach { it.destroy() }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user