File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 55 "testing"
66 "time"
77
8+ "github.com/TwiN/kevent"
89 appsv1 "k8s.io/api/apps/v1"
910 v1 "k8s.io/api/core/v1"
1011 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -87,6 +88,7 @@ func TestReconcile(t *testing.T) {
8788 // Create clients
8889 kubernetesClient := fakekubernetes .NewSimpleClientset ()
8990 dynamicClient := fakedynamic .NewSimpleDynamicClient (scheme )
91+ eventManager := kevent .NewEventManager (kubernetesClient , "k8s-ttl-controller" )
9092
9193 fakeDiscovery , _ := kubernetesClient .Discovery ().(* fakediscovery.FakeDiscovery )
9294 fakeDiscovery .Fake .Resources = []* metav1.APIResourceList {
@@ -119,7 +121,7 @@ func TestReconcile(t *testing.T) {
119121 t .Errorf ("expected 3 resources, got %d" , len (list .Items ))
120122 }
121123 // Reconcile once
122- if err := Reconcile (kubernetesClient , dynamicClient ); err != nil {
124+ if err := Reconcile (kubernetesClient , dynamicClient , eventManager ); err != nil {
123125 t .Errorf ("unexpected error: %v" , err )
124126 }
125127 // Make sure that the expired resources have been deleted
You can’t perform that action at this time.
0 commit comments