Use NewPedanticRegistry in Process' Collector tests

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
This commit is contained in:
Arthur Silva Sens 2024-08-19 15:27:04 -03:00 committed by bwplotka
parent 73b811c54a
commit 5bf3341b66
1 changed files with 1 additions and 1 deletions

View File

@ -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)
} }