Kind of typo

It seems the author foget to change the variable name after copying
from the valid testcase.

Signed-off-by: Hu Keping <hukeping@huawei.com>
Upstream-commit: fd5c33194ca6ff0851925bf1efe386a5375362a5
Component: engine
This commit is contained in:
Hu Keping
2015-09-09 18:57:45 +08:00
parent b4c2d1f576
commit e87532e652

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)
}
}
}