Skip to content

Commit e21d4eb

Browse files
committed
test: fix test for Go memstats struct change
Signed-off-by: Ales Pour <[email protected]>
1 parent 074bca8 commit e21d4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/go_collector_latest_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func expectedBaseMetrics() map[string]struct{} {
6262

6363
func addExpectedRuntimeMemStats(metrics map[string]struct{}) map[string]struct{} {
6464
for _, m := range goRuntimeMemStats() {
65-
metrics[m.desc.fqName] = struct{}{}
65+
metrics[m.metric.Desc().fqName] = struct{}{}
6666
}
6767
return metrics
6868
}

0 commit comments

Comments
 (0)