mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-22 23:51:27 +01:00
fix scan controller test introduced by api change
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
25f638a989
commit
7c16cbfeef
@ -527,8 +527,8 @@ func (mrc *MockRobotController) UpdateRobotAccount(r *model.Robot) error {
|
||||
}
|
||||
|
||||
// ListRobotAccount ...
|
||||
func (mrc *MockRobotController) ListRobotAccount(pid int64) ([]*model.Robot, error) {
|
||||
args := mrc.Called(pid)
|
||||
func (mrc *MockRobotController) ListRobotAccount(query *q.Query) ([]*model.Robot, error) {
|
||||
args := mrc.Called(query)
|
||||
if args.Get(0) == nil {
|
||||
return nil, args.Error(1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user