From f19f84bc8c40efde1efe7a45b2b058aa010fdc53 Mon Sep 17 00:00:00 2001 From: Sam Kleinman Date: Mon, 10 Jan 2022 13:03:53 -0500 Subject: [PATCH] test: uniquify prom IDs (#7540) --- config/config.go | 1 - config/toml.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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 }