From 75182f72056b92b73ed164e4dccfc867072d82d3 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 28 Dec 2017 11:17:15 -0600 Subject: [PATCH] change directory for each call, not only for each test Fixes #1026 --- consensus/wal_generator.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus/wal_generator.go b/consensus/wal_generator.go index b4efb5a91..73ad3e7fc 100644 --- a/consensus/wal_generator.go +++ b/consensus/wal_generator.go @@ -18,6 +18,7 @@ import ( sm "github.com/tendermint/tendermint/state" "github.com/tendermint/tendermint/types" auto "github.com/tendermint/tmlibs/autofile" + cmn "github.com/tendermint/tmlibs/common" "github.com/tendermint/tmlibs/db" "github.com/tendermint/tmlibs/log" ) @@ -128,7 +129,7 @@ func makeAddrs() (string, string, string) { // getConfig returns a config for test cases func getConfig() *cfg.Config { 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 tm, rpc, grpc := makeAddrs()