mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Update TestCommand.kt
This commit is contained in:
parent
d2dffef44c
commit
cfdce8dd8c
@ -77,7 +77,6 @@ internal class TestCommand {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testRegister() {
|
fun testRegister() {
|
||||||
error(TestCompositeCommand.usage)
|
|
||||||
try {
|
try {
|
||||||
unregisterAllCommands(ConsoleCommandOwner) // builtins
|
unregisterAllCommands(ConsoleCommandOwner) // builtins
|
||||||
unregisterCommand(TestSimpleCommand)
|
unregisterCommand(TestSimpleCommand)
|
||||||
@ -339,4 +338,4 @@ internal fun assertSuccess(result: CommandExecuteResult) {
|
|||||||
if (result.isFailure()) {
|
if (result.isFailure()) {
|
||||||
throw result.exception ?: AssertionError(result.toString())
|
throw result.exception ?: AssertionError(result.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user