Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
drivebyer committed Sep 16, 2024
1 parent 57a71be commit 4da862e
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pkg/controllers/redissentinel/redissentinel_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
. "github.com/onsi/gomega"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)
Expand Down Expand Up @@ -95,26 +94,5 @@ var _ = Describe("Redis sentinel test", func() {
"role": "sentinel",
}))
})

Context("then deleting the redis sentinel CR", func() {
It("should delete the statefulset", func() {
redisSentinelCR := &redisv1beta2.RedisSentinel{
ObjectMeta: metav1.ObjectMeta{
Name: redisSentinelCRName,
Namespace: ns,
},
}
Expect(k8sClient.Delete(context.TODO(), redisSentinelCR)).To(BeNil())

Eventually(func() bool {
sts := &appsv1.StatefulSet{}
err := k8sClient.Get(context.TODO(), types.NamespacedName{
Name: redisSentinelCRName + "-sentinel",
Namespace: ns,
}, sts)
return errors.IsNotFound(err)
}, timeout, interval).Should(BeTrue())
})
})
})
})

0 comments on commit 4da862e

Please sign in to comment.