Parcourir la source

Merge pull request #16176 from HuKeping/typo

Kind of typo
Doug Davis il y a 9 ans
Parent
commit
8ff67b9c1a
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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)
 		}
 	}
 }