@@ -27,7 +27,6 @@ import (
27
27
. "github.com/onsi/gomega"
28
28
corev1 "k8s.io/api/core/v1"
29
29
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
30
- "k8s.io/apimachinery/pkg/types"
31
30
32
31
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
33
32
notiv1 "github.com/fluxcd/notification-controller/api/v1"
@@ -119,32 +118,6 @@ metadata:
119
118
g .Expect (testEnv .Create (ctx , & alert )).ToNot (HaveOccurred ())
120
119
defer testEnv .Delete (ctx , & alert )
121
120
122
- g .Eventually (func () bool {
123
- nn := types.NamespacedName {Name : provider .Name , Namespace : provider .Namespace }
124
- obj := & notiv1beta3.Provider {}
125
- err := testEnv .Get (ctx , nn , obj )
126
- if err != nil {
127
- return false
128
- }
129
- if err := checkReadyCondition (obj ); err != nil {
130
- t .Log (err )
131
- return false
132
- }
133
-
134
- nn = types.NamespacedName {Name : alert .Name , Namespace : alert .Namespace }
135
- alertObj := & notiv1beta3.Alert {}
136
- err = testEnv .Get (ctx , nn , alertObj )
137
- if err != nil {
138
- return false
139
- }
140
- if err := checkReadyCondition (alertObj ); err != nil {
141
- t .Log (err )
142
- return false
143
- }
144
-
145
- return true
146
- }, testTimeout , testInterval ).Should (BeTrue ())
147
-
148
121
modifyKsSpec := func (spec * kustomizev1.KustomizationSpec ) {
149
122
spec .Interval = metav1.Duration {Duration : 30 * time .Second }
150
123
spec .HealthChecks = []meta.NamespacedObjectKindReference {
0 commit comments