mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-08 07:51:25 +01: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 {
|
||||
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 {
|
||||
t.Errorf("repository pull count is not 1 after IncreasePullCount, expected: 1, actual: %d", repository.PullCount)
|
||||
|
Loading…
Reference in New Issue
Block a user