Merge pull request #16176 from HuKeping/typo

Kind of typo
Upstream-commit: 8ff67b9c1aa5b681c4c1e985d5c70356a3a9c99c
Component: engine
This commit is contained in:
Doug Davis
2015-09-09 07:37:37 -04:00

View File

@ -14,10 +14,10 @@ func TestValidTagName(t *testing.T) {
}
func TestInvalidTagName(t *testing.T) {
validTags := []string{"-9", ".foo", "-test", ".", "-"}
for _, tag := range validTags {
inValidTags := []string{"-9", ".foo", "-test", ".", "-"}
for _, tag := range inValidTags {
if err := ValidateTagName(tag); err == nil {
t.Errorf("'%s' shouldn't have been a valid tag", tag)
t.Errorf("'%s' should've been an invalid tag", tag)
}
}
}