From bd1e79dcf0e2b9d637b44b192ddd44ae9d691375 Mon Sep 17 00:00:00 2001 From: lixiaobing10051267 Date: Wed, 30 Nov 2016 17:54:41 +0800 Subject: [PATCH] checkt t.Fatalf information for reference path Signed-off-by: lixiaobing10051267 Upstream-commit: 4b1ff89faed5a04d1220c2953b8e72eb4e651dcb Component: engine --- components/engine/reference/reference_test.go | 2 +- components/engine/reference/store_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/reference/reference_test.go b/components/engine/reference/reference_test.go index ff35ba3da2..a1822b784e 100644 --- a/components/engine/reference/reference_test.go +++ b/components/engine/reference/reference_test.go @@ -229,7 +229,7 @@ func TestParseRepositoryInfo(t *testing.T) { t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual) } if expected, actual := tcase.FullName, r.FullName(); expected != actual { - t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual) + t.Fatalf("Invalid fullName for %q. Expected %q, got %q", r, expected, actual) } if expected, actual := tcase.Hostname, r.Hostname(); expected != actual { t.Fatalf("Invalid hostname for %q. Expected %q, got %q", r, expected, actual) diff --git a/components/engine/reference/store_test.go b/components/engine/reference/store_test.go index dd1d253d8e..c2c9c97d91 100644 --- a/components/engine/reference/store_test.go +++ b/components/engine/reference/store_test.go @@ -350,7 +350,7 @@ func TestInvalidTags(t *testing.T) { } err = store.AddTag(ref, id, true) if err == nil { - t.Fatalf("expected setting digest %q to fail", ref) + t.Fatalf("expected setting tag %q to fail", ref) } }