Browse Source

fix node/addrbook test; made build task quieter

pull/119/head
Jae Kwon 9 years ago
parent
commit
7441e322d0
3 changed files with 2 additions and 12 deletions
  1. +1
    -1
      Makefile
  2. +0
    -4
      config/tendermint_test/config.go
  3. +1
    -7
      node/node_test.go

+ 1
- 1
Makefile View File

@ -28,7 +28,7 @@ build_race:
test: build
-rm -rf ~/.tendermint_test_bak
-mv ~/.tendermint_test ~/.tendermint_test_bak
-mv ~/.tendermint_test ~/.tendermint_test_bak && true
go test github.com/tendermint/tendermint/...
draw_deps:


+ 0
- 4
config/tendermint_test/config.go View File

@ -31,7 +31,6 @@ func initTMRoot(rootDir string) {
configFilePath := path.Join(rootDir, "config.toml")
genesisFilePath := path.Join(rootDir, "genesis.json")
privValFilePath := path.Join(rootDir, "priv_validator.json")
// Write default config file if missing.
if !FileExists(configFilePath) {
@ -42,9 +41,6 @@ func initTMRoot(rootDir string) {
if !FileExists(genesisFilePath) {
MustWriteFile(genesisFilePath, []byte(defaultGenesis))
}
if !FileExists(privValFilePath) {
MustWriteFile(privValFilePath, []byte(privValFilePath))
}
}
func GetConfig(rootDir string) cfg.Config {


+ 1
- 7
node/node_test.go View File

@ -4,16 +4,10 @@ import (
"testing"
"time"
cfg "github.com/tendermint/tendermint/config"
tmcfg "github.com/tendermint/tendermint/config/tendermint"
_ "github.com/tendermint/tendermint/config/tendermint_test"
"github.com/tendermint/tendermint/p2p"
)
func init() {
config := tmcfg.GetConfig("")
cfg.ApplyConfig(config)
}
func TestNodeStartStop(t *testing.T) {
// Create & start node
n := NewNode()


Loading…
Cancel
Save