Skip to content

Commit

Permalink
Update points_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
beckettsean committed Oct 13, 2015
1 parent e84a245 commit 2100c14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/points_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
if err == nil {
t.Errorf(`ParsePoints("%s") mismatch. got nil, exp error`, `cpu,host=serverA,=us-east value=1i`)
Expand Down Expand Up @@ -560,7 +560,7 @@ func TestParsePointUnescape(t *testing.T) {
test(t, `cpu,region\,zone=east value=1.0`,
models.NewPoint("cpu",
models.Tags{
"region,zone": "east", // comma in the tag name
"region,zone": "east", // comma in the tag key
},
models.Fields{
"value": 1.0,
Expand All @@ -571,7 +571,7 @@ func TestParsePointUnescape(t *testing.T) {
test(t, `cpu,region\ zone=east value=1.0`,
models.NewPoint("cpu",
models.Tags{
"region zone": "east", // comma in the tag name
"region zone": "east", // comma in the tag key
},
models.Fields{
"value": 1.0,
Expand Down

0 comments on commit 2100c14

Please sign in to comment.