Skip to content

Commit 734e3b1

Browse files
committed
fix unit tests
1 parent 30e9048 commit 734e3b1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

controllers/operator/mongodbsearch_controller_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ import (
88
"github.com/ghodss/yaml"
99
"github.com/stretchr/testify/assert"
1010
"k8s.io/apimachinery/pkg/types"
11-
"k8s.io/client-go/util/workqueue"
1211
"k8s.io/utils/ptr"
1312
"sigs.k8s.io/controller-runtime/pkg/client"
14-
"sigs.k8s.io/controller-runtime/pkg/controller/controllertest"
15-
"sigs.k8s.io/controller-runtime/pkg/event"
1613
"sigs.k8s.io/controller-runtime/pkg/reconcile"
1714

1815
appsv1 "k8s.io/api/apps/v1"
@@ -193,10 +190,6 @@ func TestMongoDBSearchReconcile_Success(t *testing.T) {
193190
sts := &appsv1.StatefulSet{}
194191
err = c.Get(ctx, search.StatefulSetNamespacedName(), sts)
195192
assert.NoError(t, err)
196-
197-
queue := controllertest.Queue{Interface: workqueue.New()}
198-
reconciler.mdbcWatcher.Create(ctx, event.CreateEvent{Object: mdbc}, &queue)
199-
assert.Equal(t, 1, queue.Len())
200193
}
201194

202195
func checkSearchReconcileFailed(

0 commit comments

Comments
 (0)