mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-10 15:07:24 +00:00
importing tendermint/config/tendermint_test applies the test config
This commit is contained in:
15
test/init.go
15
test/init.go
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user