Fix err in graphite parser_test (#5257)

This commit is contained in:
j2gg0s 2019-01-08 03:30:48 +08:00 committed by Daniel Nelson
parent 9dc9bd653a
commit 9800779e64
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ func TestParseLine(t *testing.T) {
len(test.tags), len(metric.Tags()))
}
f := metric.Fields()["value"].(float64)
if metric.Fields()["value"] != f {
if f != test.value {
t.Fatalf("floatValue value mismatch. expected %v, got %v",
test.value, f)
}