mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
chore: fix dependabot alerts (#1621)
* chore: fix dependabot alerts Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * test: fix the validation for digests Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> --------- Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
74f769d2c1
commit
6cd4455da1
@@ -150,7 +150,8 @@ func TestGetContentByLocalRepo(t *testing.T) {
|
||||
cm := NewContentManager(test.content, log.Logger{})
|
||||
actualResult := cm.getContentByLocalRepo(test.repo)
|
||||
if test.expected == -1 {
|
||||
So(actualResult, ShouldEqual, nil)
|
||||
var tnil *syncconf.Content = nil
|
||||
So(actualResult, ShouldEqual, tnil)
|
||||
} else {
|
||||
So(actualResult, ShouldEqual, &test.content[test.expected])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user