diff --git a/src/pkg/retention/job_test.go b/src/pkg/retention/job_test.go index cf7155b34..6d960ae64 100644 --- a/src/pkg/retention/job_test.go +++ b/src/pkg/retention/job_test.go @@ -119,6 +119,7 @@ func (frc *fakeRetentionClient) GetCandidates(repo *res.Repository) ([]*res.Cand Repository: "harbor", Kind: "image", Tag: "latest", + Digest: "latest", PushedTime: time.Now().Unix() - 11, PulledTime: time.Now().Unix() - 2, CreationTime: time.Now().Unix() - 10, @@ -129,6 +130,7 @@ func (frc *fakeRetentionClient) GetCandidates(repo *res.Repository) ([]*res.Cand Repository: "harbor", Kind: "image", Tag: "dev", + Digest: "dev", PushedTime: time.Now().Unix() - 10, PulledTime: time.Now().Unix() - 3, CreationTime: time.Now().Unix() - 20,