mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
tsdb/agent: use unique registry per tests
So tests can run in parallel. Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
This commit is contained in:
parent
c08bb86be0
commit
83086aee00
|
@ -39,7 +39,7 @@ func TestUnsupported(t *testing.T) {
|
|||
opts := DefaultOptions()
|
||||
logger := log.NewNopLogger()
|
||||
|
||||
s, err := Open(logger, prometheus.DefaultRegisterer, nil, promAgentDir, opts)
|
||||
s, err := Open(logger, prometheus.NewRegistry(), nil, promAgentDir, opts)
|
||||
require.NoError(t, err)
|
||||
defer func() {
|
||||
require.NoError(t, s.Close())
|
||||
|
|
Loading…
Reference in a new issue