Skip to content

Commit 8cdd736

Browse files
committed
Updates
1 parent 98268d2 commit 8cdd736

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/controller/genericprovider_controller_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
. "github.com/onsi/gomega"
2424
appsv1 "k8s.io/api/apps/v1"
2525
corev1 "k8s.io/api/core/v1"
26-
"k8s.io/apimachinery/pkg/api/meta"
2726
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2827
"k8s.io/apimachinery/pkg/runtime"
2928
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
@@ -312,7 +311,7 @@ func TestReconcilerPreflightConditions(t *testing.T) {
312311
return false
313312
}
314313

315-
if meta.IsStatusConditionTrue(p.GetStatus().Conditions, operatorv1.PreflightCheckCondition) {
314+
if conditions.IsTrue(p, operatorv1.PreflightCheckCondition) {
316315
return true
317316
}
318317
}

0 commit comments

Comments
 (0)