From c58aa8a50a6def6855fa01b13e210450454c6c25 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 --- docs/storage/tagstore_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/storage/tagstore_test.go b/docs/storage/tagstore_test.go index 52873a69..554a46bf 100644 --- a/docs/storage/tagstore_test.go +++ b/docs/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") } }