mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
Controller rpc tests (#2709)
* Test code for controller-handler operations: * Heal operations * List operation * Switch to "testing" lib, moving away from gocheck * Minor refactors * Remove extra call to initGracefulShutdown * Remove dead code in mainControl: Dead code found by the TestControlMain() test function that always passes. * Add tests for control-*-main.go
This commit is contained in:
committed by
Harshavardhana
parent
559ad38b8c
commit
32f097b4d6
+1
-6
@@ -45,10 +45,5 @@ COMMANDS:
|
||||
}
|
||||
|
||||
func mainControl(ctx *cli.Context) {
|
||||
if ctx.Args().First() != "" { // command help.
|
||||
cli.ShowCommandHelp(ctx, ctx.Args().First())
|
||||
} else {
|
||||
// command with Subcommands is an App.
|
||||
cli.ShowAppHelp(ctx)
|
||||
}
|
||||
cli.ShowAppHelp(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user