Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Neo2308 <[email protected]>
  • Loading branch information
Neo2308 committed Oct 22, 2024
1 parent 5ec72fa commit d34d4e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/ansible/handler/logging_enqueue_annotation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ import (
)

var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
var q workqueue.RateLimitingInterface
var q workqueue.TypedRateLimitingInterface[reconcile.Request]
var instance LoggingEnqueueRequestForAnnotation
var pod *corev1.Pod
var podOwner *corev1.Pod
var ctx context.Context

BeforeEach(func() {
ctx = context.TODO()
q = &controllertest.Queue{Interface: workqueue.New()}
q = &controllertest.TypedQueue[reconcile.Request]{TypedInterface: workqueue.NewTyped[reconcile.Request]()}
pod = &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{
Namespace: "biz",
Expand Down
4 changes: 2 additions & 2 deletions internal/ansible/handler/logging_enqueue_object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ import (
)

var _ = Describe("LoggingEnqueueRequestForObject", func() {
var q workqueue.RateLimitingInterface
var q workqueue.TypedRateLimitingInterface[reconcile.Request]
var instance LoggingEnqueueRequestForObject
var pod *corev1.Pod
var ctx = context.TODO()

BeforeEach(func() {
logBuffer.Reset()
q = &controllertest.Queue{Interface: workqueue.New()}
q = &controllertest.TypedQueue[reconcile.Request]{TypedInterface: workqueue.NewTyped[reconcile.Request]()}
instance = LoggingEnqueueRequestForObject{}
pod = &corev1.Pod{
TypeMeta: metav1.TypeMeta{
Expand Down
4 changes: 2 additions & 2 deletions internal/ansible/handler/logging_enqueue_owner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ import (

var _ = Describe("Eventhandler", func() {
var ctx = context.Background()
var q workqueue.RateLimitingInterface
var q workqueue.TypedRateLimitingInterface[reconcile.Request]
var pod *corev1.Pod
var mapper meta.RESTMapper
BeforeEach(func() {
q = &controllertest.Queue{Interface: workqueue.New()}
q = &controllertest.TypedQueue[reconcile.Request]{TypedInterface: workqueue.NewTyped[reconcile.Request]()}
pod = &corev1.Pod{
ObjectMeta: metav1.ObjectMeta{Namespace: "biz", Name: "baz"},
}
Expand Down

0 comments on commit d34d4e4

Please sign in to comment.