Update points_test.go

pull/4436/head
Sean Beckett 2015-10-13 16:46:23 -07:00
parent e84a24541f
commit 2100c1459c
1 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ func TestParsePointMissingQuote(t *testing.T) {
} }
} }
func TestParsePointMissingTagName(t *testing.T) { func TestParsePointMissingTagKey(t *testing.T) {
_, err := models.ParsePointsString(`cpu,host=serverA,=us-east value=1i`) _, err := models.ParsePointsString(`cpu,host=serverA,=us-east value=1i`)
if err == nil { if err == nil {
t.Errorf(`ParsePoints("%s") mismatch. got nil, exp error`, `cpu,host=serverA,=us-east value=1i`) t.Errorf(`ParsePoints("%s") mismatch. got nil, exp error`, `cpu,host=serverA,=us-east value=1i`)
@ -560,7 +560,7 @@ func TestParsePointUnescape(t *testing.T) {
test(t, `cpu,region\,zone=east value=1.0`, test(t, `cpu,region\,zone=east value=1.0`,
models.NewPoint("cpu", models.NewPoint("cpu",
models.Tags{ models.Tags{
"region,zone": "east", // comma in the tag name "region,zone": "east", // comma in the tag key
}, },
models.Fields{ models.Fields{
"value": 1.0, "value": 1.0,
@ -571,7 +571,7 @@ func TestParsePointUnescape(t *testing.T) {
test(t, `cpu,region\ zone=east value=1.0`, test(t, `cpu,region\ zone=east value=1.0`,
models.NewPoint("cpu", models.NewPoint("cpu",
models.Tags{ models.Tags{
"region zone": "east", // comma in the tag name "region zone": "east", // comma in the tag key
}, },
models.Fields{ models.Fields{
"value": 1.0, "value": 1.0,