mirror of https://github.com/prometheus/prometheus
parent
050b5fc257
commit
90c266845b
|
@ -3379,12 +3379,11 @@ func TestConvertClassicHistograms(t *testing.T) {
|
||||||
# TYPE %s counter
|
# TYPE %s counter
|
||||||
%s{address="0.0.0.0",port="5001"} %d
|
%s{address="0.0.0.0",port="5001"} %d
|
||||||
`, name, name, name, value)
|
`, name, name, name, value)
|
||||||
} else {
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
%s %d
|
%s %d
|
||||||
`, name, value)
|
`, name, value)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
genTestHistText := func(name string, withMetadata bool) string {
|
genTestHistText := func(name string, withMetadata bool) string {
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"name": name,
|
"name": name,
|
||||||
|
|
Loading…
Reference in New Issue