Skip to content

Commit

Permalink
Fix the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-dekker committed Dec 15, 2023
1 parent 47d8ee5 commit 98041db
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ var _ = Describe("ManagementClusterConnection controller tests", func() {
ctx = context.Background()
mockStatus = &status.MockStatus{}
mockStatus.On("Run").Return()

mockStatus.On("AddDaemonsets", mock.Anything)
mockStatus.On("AddDeployments", mock.Anything)
mockStatus.On("AddStatefulSets", mock.Anything)
Expand All @@ -82,7 +81,9 @@ var _ = Describe("ManagementClusterConnection controller tests", func() {
mockStatus.On("OnCRFound").Return()
mockStatus.On("ReadyToMonitor")
mockStatus.On("SetMetaData", mock.Anything).Return()

Expect(c.Create(ctx, &operatorv1.Monitor{
ObjectMeta: metav1.ObjectMeta{Name: "tigera-secure"},
}))
r = clusterconnection.NewReconcilerWithShims(c, scheme, mockStatus, operatorv1.ProviderNone, ready)
dpl = &appsv1.Deployment{
TypeMeta: metav1.TypeMeta{Kind: "Deployment", APIVersion: "apps/v1"},
Expand Down

0 comments on commit 98041db

Please sign in to comment.