From fd5c33194ca6ff0851925bf1efe386a5375362a5 Mon Sep 17 00:00:00 2001 From: Hu Keping Date: Wed, 9 Sep 2015 18:57:45 +0800 Subject: [PATCH] Kind of typo It seems the author foget to change the variable name after copying from the valid testcase. Signed-off-by: Hu Keping --- graph/tags/tags_unit_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graph/tags/tags_unit_test.go b/graph/tags/tags_unit_test.go index 5114da1075..374e0f053c 100644 --- a/graph/tags/tags_unit_test.go +++ b/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) } } }