Browse Source

test: uniquify prom IDs (#7540)

pull/7545/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
f19f84bc8c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions
  1. +0
    -1
      config/config.go
  2. +2
    -0
      config/toml.go

+ 0
- 1
config/config.go View File

@ -683,7 +683,6 @@ func TestP2PConfig() *P2PConfig {
cfg.ListenAddress = "tcp://127.0.0.1:36656" cfg.ListenAddress = "tcp://127.0.0.1:36656"
cfg.AllowDuplicateIP = true cfg.AllowDuplicateIP = true
cfg.FlushThrottleTimeout = 10 * time.Millisecond cfg.FlushThrottleTimeout = 10 * time.Millisecond
return cfg return cfg
} }


+ 2
- 0
config/toml.go View File

@ -9,6 +9,7 @@ import (
"text/template" "text/template"
tmos "github.com/tendermint/tendermint/libs/os" tmos "github.com/tendermint/tendermint/libs/os"
tmrand "github.com/tendermint/tendermint/libs/rand"
) )
// DefaultDirPerm is the default permissions used when creating directories. // 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 := TestConfig().SetRoot(rootDir)
config.Instrumentation.Namespace = fmt.Sprintf("%s_%s_%s", testName, chainID, tmrand.Str(16))
return config, nil return config, nil
} }


Loading…
Cancel
Save