X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/282536bbd088d06455053e4599051ad6352728b9..f4b7e7bf5b1a875db95a42781937c2a690062dd3:/services/keepstore/proxy_remote_test.go diff --git a/services/keepstore/proxy_remote_test.go b/services/keepstore/proxy_remote_test.go index 6e720b8499..6c22d1d32a 100644 --- a/services/keepstore/proxy_remote_test.go +++ b/services/keepstore/proxy_remote_test.go @@ -20,6 +20,7 @@ import ( "git.curoverse.com/arvados.git/sdk/go/arvadostest" "git.curoverse.com/arvados.git/sdk/go/auth" "git.curoverse.com/arvados.git/sdk/go/keepclient" + "github.com/prometheus/client_golang/prometheus" check "gopkg.in/check.v1" ) @@ -100,15 +101,16 @@ func (s *ProxyRemoteSuite) SetUpTest(c *check.C) { theConfig = DefaultConfig() theConfig.systemAuthToken = arvadostest.DataManagerToken theConfig.blobSigningKey = []byte(knownKey) - theConfig.Start() - s.rtr = MakeRESTRouter(s.cluster) + r := prometheus.NewRegistry() + theConfig.Start(r) + s.rtr = MakeRESTRouter(s.cluster, r) } func (s *ProxyRemoteSuite) TearDownTest(c *check.C) { s.vm.Close() KeepVM = nil theConfig = DefaultConfig() - theConfig.Start() + theConfig.Start(prometheus.NewRegistry()) s.remoteAPI.Close() s.remoteKeepproxy.Close() }