Use NewPedanticRegistry in Process' Collector tests
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
This commit is contained in:
parent
73b811c54a
commit
5bf3341b66
|
@ -37,7 +37,7 @@ func TestProcessCollector(t *testing.T) {
|
||||||
t.Skipf("skipping TestProcessCollector, procfs not available: %s", err)
|
t.Skipf("skipping TestProcessCollector, procfs not available: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
registry := NewRegistry()
|
registry := NewPedanticRegistry()
|
||||||
if err := registry.Register(NewProcessCollector(ProcessCollectorOpts{})); err != nil {
|
if err := registry.Register(NewProcessCollector(ProcessCollectorOpts{})); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue