forked from mirror/client_golang
Review feedback: use one line.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
parent
8961609f91
commit
614377c550
|
@ -22,8 +22,6 @@ import (
|
||||||
func TestWrapNil(t *testing.T) {
|
func TestWrapNil(t *testing.T) {
|
||||||
// A nil registerer should be treated as a no-op by promauto, even when wrapped.
|
// A nil registerer should be treated as a no-op by promauto, even when wrapped.
|
||||||
registerer := prometheus.WrapRegistererWith(prometheus.Labels{"foo": "bar"}, nil)
|
registerer := prometheus.WrapRegistererWith(prometheus.Labels{"foo": "bar"}, nil)
|
||||||
c := With(registerer).NewCounter(prometheus.CounterOpts{
|
c := With(registerer).NewCounter(prometheus.CounterOpts{Name: "test"})
|
||||||
Name: "test",
|
|
||||||
})
|
|
||||||
c.Inc()
|
c.Inc()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue