Browse code

checkt t.Fatalf information for reference path

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>

lixiaobing10051267 authored on 2016/11/30 18:54:41
Showing 2 changed files
... ...
@@ -229,7 +229,7 @@ func TestParseRepositoryInfo(t *testing.T) {
229 229
 				t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual)
230 230
 			}
231 231
 			if expected, actual := tcase.FullName, r.FullName(); expected != actual {
232
-				t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual)
232
+				t.Fatalf("Invalid fullName for %q. Expected %q, got %q", r, expected, actual)
233 233
 			}
234 234
 			if expected, actual := tcase.Hostname, r.Hostname(); expected != actual {
235 235
 				t.Fatalf("Invalid hostname for %q. Expected %q, got %q", r, expected, actual)
... ...
@@ -350,7 +350,7 @@ func TestInvalidTags(t *testing.T) {
350 350
 	}
351 351
 	err = store.AddTag(ref, id, true)
352 352
 	if err == nil {
353
-		t.Fatalf("expected setting digest %q to fail", ref)
353
+		t.Fatalf("expected setting tag %q to fail", ref)
354 354
 	}
355 355
 
356 356
 }