Browse Source

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>
Hu Keping 9 years ago
parent
commit
fd5c33194c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      graph/tags/tags_unit_test.go

+ 3 - 3
graph/tags/tags_unit_test.go

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