mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-06 11:08:11 +02:00
change dao_test file
This commit is contained in:
parent
9017fe2b56
commit
ec59807963
@ -353,7 +353,8 @@ func TestChangeUserPasswordWithIncorrectOldPassword(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestQueryRelevantProjectsWhenNoProjectAdded(t *testing.T) {
|
func TestQueryRelevantProjectsWhenNoProjectAdded(t *testing.T) {
|
||||||
projects, err := GetUserRelevantProjects(currentUser.UserID)
|
project := models.Project{UserID: currentUser.UserID}
|
||||||
|
projects, err := GetUserRelevantProjects(project)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Error occurred in QueryRelevantProjects: %v", err)
|
t.Errorf("Error occurred in QueryRelevantProjects: %v", err)
|
||||||
}
|
}
|
||||||
@ -599,7 +600,8 @@ func TestProjectPermission(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGetUserRelevantProjects(t *testing.T) {
|
func TestGetUserRelevantProjects(t *testing.T) {
|
||||||
projects, err := GetUserRelevantProjects(currentUser.UserID)
|
project := models.Project{UserID: currentUser.UserID}
|
||||||
|
projects, err := GetUserRelevantProjects(project)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Error occurred in GetUserRelevantProjects: %v", err)
|
t.Errorf("Error occurred in GetUserRelevantProjects: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user