forked from TrueCloudLab/distribution
compare error output in tagstore unit test
Signed-off-by: xiekeyang <xiekeyang@huawei.com>
This commit is contained in:
parent
db7411ff2e
commit
c58aa8a50a
1 changed files with 2 additions and 1 deletions
|
@ -98,8 +98,9 @@ func TestTagStoreUnTag(t *testing.T) {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
errExpect := distribution.ErrTagUnknown{Tag: "latest"}.Error()
|
||||||
_, err = tags.Get(ctx, "latest")
|
_, err = tags.Get(ctx, "latest")
|
||||||
if err == nil {
|
if err == nil || err.Error() != errExpect {
|
||||||
t.Error("Expected error getting untagged tag")
|
t.Error("Expected error getting untagged tag")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue