Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
pull/14978/head
Jeanette Tan 2024-07-03 17:56:48 +08:00 committed by György Krajcsovits
parent 050b5fc257
commit 90c266845b
1 changed files with 2 additions and 3 deletions

View File

@ -3379,11 +3379,10 @@ 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{}{