mirror of
https://github.com/distribution/distribution.git
synced 2025-08-31 14:37:56 +00:00
Merge pull request #1477 from xiekeyang/unit-test
compare error output in tagstore unit test
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user