Browse Source

Makefile: add megacheck & some additional fixes

pull/522/head
zramsay 8 years ago
parent
commit
9c3eee0b00
3 changed files with 10 additions and 9 deletions
  1. +8
    -1
      Makefile
  2. +1
    -4
      cmd/tendermint/commands/root.go
  3. +1
    -4
      consensus/byzantine_test.go

+ 8
- 1
Makefile View File

@ -1,6 +1,8 @@
GOTOOLS = \
github.com/mitchellh/gox \
github.com/Masterminds/glide
github.com/Masterminds/glide \
honnef.co/go/tools/cmd/megacheck
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
BUILD_TAGS?=tendermint
TMHOME = $${TMHOME:-$$HOME/.tendermint}
@ -72,5 +74,10 @@ tools:
ensure_tools:
go get $(GOTOOLS)
### Formatting, linting, and vetting
megacheck:
@for pkg in ${PACKAGES}; do megacheck "$$pkg"; done
.PHONY: install build build_race dist test test_race test_integrations test100 draw_deps list_deps get_deps get_vendor_deps update_deps revision tools

+ 1
- 4
cmd/tendermint/commands/root.go View File

@ -31,9 +31,6 @@ var RootCmd = &cobra.Command{
config.SetRoot(config.RootDir)
cfg.EnsureRoot(config.RootDir)
logger, err = tmflags.ParseLogLevel(config.LogLevel, logger)
if err != nil {
return err
}
return nil
return err
},
}

+ 1
- 4
consensus/byzantine_test.go View File

@ -117,10 +117,7 @@ func TestByzantine(t *testing.T) {
p2p.Connect2Switches(switches, ind1, ind2)
// wait for someone in the big partition to make a block
select {
case <-eventChans[ind2]:
}
<-eventChans[ind2]
t.Log("A block has been committed. Healing partition")


Loading…
Cancel
Save