Browse Source

cleanup requested from review by @melekes

pull/1780/head
Emmanuel Odeke 7 years ago
parent
commit
e3d244091d
No known key found for this signature in database GPG Key ID: 1CA47A292F89DD40
2 changed files with 3 additions and 9 deletions
  1. +1
    -7
      cmd/abci-cli/abci-cli.go
  2. +2
    -2
      tests/server/client.go

+ 1
- 7
cmd/abci-cli/abci-cli.go View File

@ -387,15 +387,9 @@ func cmdConsole(cmd *cobra.Command, args []string) error {
return nil return nil
} }
var (
errBadPersistentArgs = errors.New("expecting persistent args of the form: abci-cli [command] <...>")
errUnimplemented = errors.New("unimplemented")
)
func muxOnCommands(cmd *cobra.Command, pArgs []string) error { func muxOnCommands(cmd *cobra.Command, pArgs []string) error {
if len(pArgs) < 2 { if len(pArgs) < 2 {
return errBadPersistentArgs
return errors.New("expecting persistent args of the form: abci-cli [command] <...>")
} }
subCommand, actualArgs := pArgs[1], pArgs[2:] subCommand, actualArgs := pArgs[1], pArgs[2:]


+ 2
- 2
tests/server/client.go View File

@ -21,7 +21,7 @@ func InitChain(client abcicli.Client) error {
} }
_, err := client.InitChainSync(types.RequestInitChain{Validators: vals}) _, err := client.InitChainSync(types.RequestInitChain{Validators: vals})
if err != nil { if err != nil {
fmt.Println("Failed test: InitChain - %v", err)
fmt.Printf("Failed test: InitChain - %v\n", err)
return err return err
} }
fmt.Println("Passed test: InitChain") fmt.Println("Passed test: InitChain")
@ -46,7 +46,7 @@ func Commit(client abcicli.Client, hashExp []byte) error {
_, data := res.Code, res.Data _, data := res.Code, res.Data
if err != nil { if err != nil {
fmt.Println("Failed test: Commit") fmt.Println("Failed test: Commit")
fmt.Printf("committing %v\nlog: %v", res.GetLog())
fmt.Printf("committing %v\nlog: %v\n", res.GetLog(), err)
return err return err
} }
if !bytes.Equal(data, hashExp) { if !bytes.Equal(data, hashExp) {


Loading…
Cancel
Save