Skip to content

Commit 3b6f82b

Browse files
authored
Fix the mirror-exists check in the mirror test (#425)
1 parent 7b696d4 commit 3b6f82b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gitlab/resource_gitlab_project_mirror_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,10 @@ func testAccCheckGitlabProjectMirrorExists(n string, mirror *gitlab.ProjectMirro
112112
for _, m := range mirrors {
113113
if m.ID == mirrorID {
114114
*mirror = *m
115-
break
115+
return nil
116116
}
117-
return errors.New("unable to find mirror.")
118117
}
119-
return nil
118+
return errors.New("unable to find mirror")
120119
}
121120
}
122121

0 commit comments

Comments
 (0)