add local registry.Reset()

This commit is contained in:
CatherineF-dev 2021-11-12 03:49:58 +00:00
parent 744785ee40
commit 03f7a8d7d2

View File

@ -587,6 +587,8 @@ func TestGetHistogramVecFromGatherer(t *testing.T) {
if diff := cmp.Diff(tt.wantVec, histogramVec); diff != "" { if diff := cmp.Diff(tt.wantVec, histogramVec); diff != "" {
t.Errorf("Got unexpected HistogramVec (-want +got):\n%s", diff) t.Errorf("Got unexpected HistogramVec (-want +got):\n%s", diff)
} }
registry.Reset()
}) })
} }
} }