store: separate tests that need Store from those needing *store
This commit is contained in:
@ -86,7 +86,11 @@ const (
|
||||
)
|
||||
|
||||
func init() {
|
||||
prometheus.MustRegister(readCounter)
|
||||
if prometheus.Register(readCounter) != nil {
|
||||
// Tests will try to double register sicne the tests use both
|
||||
// store and store_test packages; ignore second attempts.
|
||||
return
|
||||
}
|
||||
prometheus.MustRegister(writeCounter)
|
||||
prometheus.MustRegister(expireCounter)
|
||||
prometheus.MustRegister(watchRequests)
|
||||
|
Reference in New Issue
Block a user