diff --git a/config/config.go b/config/config.go index 357a6c7d8..a559e4149 100644 --- a/config/config.go +++ b/config/config.go @@ -683,7 +683,6 @@ func TestP2PConfig() *P2PConfig { cfg.ListenAddress = "tcp://127.0.0.1:36656" cfg.AllowDuplicateIP = true cfg.FlushThrottleTimeout = 10 * time.Millisecond - return cfg } diff --git a/config/toml.go b/config/toml.go index 0baf4859f..530d67e18 100644 --- a/config/toml.go +++ b/config/toml.go @@ -9,6 +9,7 @@ import ( "text/template" tmos "github.com/tendermint/tendermint/libs/os" + tmrand "github.com/tendermint/tendermint/libs/rand" ) // DefaultDirPerm is the default permissions used when creating directories. @@ -549,6 +550,7 @@ func ResetTestRootWithChainID(testName string, chainID string) (*Config, error) } config := TestConfig().SetRoot(rootDir) + config.Instrumentation.Namespace = fmt.Sprintf("%s_%s_%s", testName, chainID, tmrand.Str(16)) return config, nil }