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())