From 83086aee00be64189542afca2153524f0bbb5c86 Mon Sep 17 00:00:00 2001 From: Mateusz Gozdek Date: Wed, 10 Nov 2021 11:46:01 +0100 Subject: [PATCH] tsdb/agent: use unique registry per tests So tests can run in parallel. Signed-off-by: Mateusz Gozdek --- tsdb/agent/db_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/agent/db_test.go b/tsdb/agent/db_test.go index 075c4a90b2..3ebf4785fa 100644 --- a/tsdb/agent/db_test.go +++ b/tsdb/agent/db_test.go @@ -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())