From d58188c4d733bc482671e49ac08419ba05ff4726 Mon Sep 17 00:00:00 2001 From: xiekeyang Date: Mon, 22 Feb 2016 15:24:49 +0800 Subject: [PATCH] compare error output in tagstore unit test Signed-off-by: xiekeyang --- registry/storage/tagstore_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/storage/tagstore_test.go b/registry/storage/tagstore_test.go index 52873a69..554a46bf 100644 --- a/registry/storage/tagstore_test.go +++ b/registry/storage/tagstore_test.go @@ -98,8 +98,9 @@ func TestTagStoreUnTag(t *testing.T) { t.Error(err) } + errExpect := distribution.ErrTagUnknown{Tag: "latest"}.Error() _, err = tags.Get(ctx, "latest") - if err == nil { + if err == nil || err.Error() != errExpect { t.Error("Expected error getting untagged tag") } }