importing tendermint/config/tendermint_test applies the test config

This commit is contained in:
Jae Kwon
2015-05-17 16:19:58 -07:00
parent 161aa8c5e9
commit 489bf767cb
12 changed files with 17 additions and 24 deletions
-15
View File
@@ -1,15 +0,0 @@
// Import this in all *_test.go files to initialize ~/.tendermint_test.
// TODO: Reset each time?
package test
import (
cfg "github.com/tendermint/tendermint/config"
tmcfg "github.com/tendermint/tendermint/config/tendermint_test"
)
func init() {
// Creates ~/.tendermint_test/*
config := tmcfg.GetConfig("")
cfg.ApplyConfig(config)
}