Skip to content

Commit 936db5f

Browse files
committed
tests/int: do not wait for alerts and providers
Signed-off-by: Sunny <darkowlzz@protonmail.com>
1 parent 231b4bd commit 936db5f

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tests/integration/notification_test.go

-27
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
. "github.com/onsi/gomega"
2828
corev1 "k8s.io/api/core/v1"
2929
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
30-
"k8s.io/apimachinery/pkg/types"
3130

3231
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1"
3332
notiv1 "github.com/fluxcd/notification-controller/api/v1"
@@ -119,32 +118,6 @@ metadata:
119118
g.Expect(testEnv.Create(ctx, &alert)).ToNot(HaveOccurred())
120119
defer testEnv.Delete(ctx, &alert)
121120

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-
148121
modifyKsSpec := func(spec *kustomizev1.KustomizationSpec) {
149122
spec.Interval = metav1.Duration{Duration: 30 * time.Second}
150123
spec.HealthChecks = []meta.NamespacedObjectKindReference{

0 commit comments

Comments
 (0)