Skip to content

Commit 21318ad

Browse files
committed
update tests
Signed-off-by: Anand Kumar Singh <anandrkskd@gmail.com>
1 parent a583353 commit 21318ad

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

controllers/gitopsservice_controller_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ import (
5050
)
5151

5252
func TestMain(m *testing.M) {
53-
util.SetOpenShiftClusterFound(true)
53+
util.SetConfigAPIFound(true)
5454
util.SetMonitoringAPIFound(true)
5555
util.SetRouteAPIFound(true)
56+
util.SetOLMAPIFound(true)
5657
os.Exit(m.Run())
5758
}
5859

controllers/util/test_util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ limitations under the License.
1717
package util
1818

1919
// *** THIS SHOULD ONLY BE USED FOR UNIT TESTING ***
20-
func SetOpenShiftClusterFound(found bool) {
21-
openShiftClusterFound = found
20+
func SetConfigAPIFound(found bool) {
21+
configAPIFound = found
2222
}
2323

2424
func SetMonitoringAPIFound(found bool) {

0 commit comments

Comments
 (0)