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
9d1a9c31c2
commit
facfb03d15
@ -604,10 +604,10 @@ func TestGetUserRelevantProjects(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Error occurred in GetUserRelevantProjects: %v", err)
|
t.Errorf("Error occurred in GetUserRelevantProjects: %v", err)
|
||||||
}
|
}
|
||||||
if len(projects) != 2 {
|
if len(projects) != 1 {
|
||||||
t.Errorf("Expected length of relevant projects is 2, but actual: %d, the projects: %+v", len(projects), projects)
|
t.Errorf("Expected length of relevant projects is 1, but actual: %d, the projects: %+v", len(projects), projects)
|
||||||
}
|
}
|
||||||
if projects[1].Name != projectName {
|
if projects[0].Name != projectName {
|
||||||
t.Errorf("Expected project name in the list: %s, actual: %s", projectName, projects[1].Name)
|
t.Errorf("Expected project name in the list: %s, actual: %s", projectName, projects[1].Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user