mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-12 14:57:12 +00:00
Merge pull request #1027 from tendermint/1026-error-signing-vote-wal-gen
change directory for each call, not only for each test
This commit is contained in:
commit
139eca0177
@ -18,6 +18,7 @@ import (
|
|||||||
sm "github.com/tendermint/tendermint/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
auto "github.com/tendermint/tmlibs/autofile"
|
auto "github.com/tendermint/tmlibs/autofile"
|
||||||
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
"github.com/tendermint/tmlibs/db"
|
"github.com/tendermint/tmlibs/db"
|
||||||
"github.com/tendermint/tmlibs/log"
|
"github.com/tendermint/tmlibs/log"
|
||||||
)
|
)
|
||||||
@ -128,7 +129,7 @@ func makeAddrs() (string, string, string) {
|
|||||||
// getConfig returns a config for test cases
|
// getConfig returns a config for test cases
|
||||||
func getConfig() *cfg.Config {
|
func getConfig() *cfg.Config {
|
||||||
pathname := makePathname()
|
pathname := makePathname()
|
||||||
c := cfg.ResetTestRoot(pathname)
|
c := cfg.ResetTestRoot(fmt.Sprintf("%s_%d", pathname, cmn.RandInt()))
|
||||||
|
|
||||||
// and we use random ports to run in parallel
|
// and we use random ports to run in parallel
|
||||||
tm, rpc, grpc := makeAddrs()
|
tm, rpc, grpc := makeAddrs()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user