mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-14 19:51:23 +01: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 {
|
||||
t.Errorf("Error occurred in GetUserRelevantProjects: %v", err)
|
||||
}
|
||||
if len(projects) != 2 {
|
||||
t.Errorf("Expected length of relevant projects is 2, but actual: %d, the projects: %+v", len(projects), projects)
|
||||
if len(projects) != 1 {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user