Update TestCommand.kt

This commit is contained in:
Him188 2020-10-27 21:58:57 +08:00 committed by GitHub
parent d2dffef44c
commit cfdce8dd8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,6 @@ internal class TestCommand {
@Test
fun testRegister() {
error(TestCompositeCommand.usage)
try {
unregisterAllCommands(ConsoleCommandOwner) // builtins
unregisterCommand(TestSimpleCommand)
@ -339,4 +338,4 @@ internal fun assertSuccess(result: CommandExecuteResult) {
if (result.isFailure()) {
throw result.exception ?: AssertionError(result.toString())
}
}
}