Merge pull request #1477 from xiekeyang/unit-test

compare error output in tagstore unit test
pull/1481/head
Richard Scothern 2016-02-22 10:13:16 -08:00
commit ce05116517
1 changed files with 2 additions and 1 deletions

View File

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