mirror of
https://github.com/goharbor/harbor
synced 2025-05-18 06:29:03 +00:00
add testing code, fix issue.
This commit is contained in:
parent
428d429e17
commit
3e0829e831
@ -1609,9 +1609,6 @@ func TestIncreasePullCount(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Error occurred in GetRepositoryByName: %v", err)
|
t.Errorf("Error occurred in GetRepositoryByName: %v", err)
|
||||||
}
|
}
|
||||||
if repository != nil {
|
|
||||||
t.Errorf("repository is not nil after IncreasePullCount, repository: %+v", repository)
|
|
||||||
}
|
|
||||||
|
|
||||||
if repository.PullCount != 1 {
|
if repository.PullCount != 1 {
|
||||||
t.Errorf("repository pull count is not 1 after IncreasePullCount, expected: 1, actual: %d", repository.PullCount)
|
t.Errorf("repository pull count is not 1 after IncreasePullCount, expected: 1, actual: %d", repository.PullCount)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user