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") } }