Skip to content

Commit e4553db

Browse files
author
Cecile Robert-Michon
committed
Remove unexpected logs in helpers_test.go
1 parent 9374108 commit e4553db

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

exp/controllers/helpers_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ func TestMachinePoolToAzureManagedControlPlaneMapFuncSuccess(t *testing.T) {
221221
fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithRuntimeObjects(initObjects...).Build()
222222

223223
log := mock_log.NewMockLogger(gomock.NewController(t))
224-
log.EXPECT().WithValues("AzureManagedControlPlane", cpName, "Namespace", cluster.Namespace).Return(log)
225-
log.EXPECT().Info("expected a MachinePool, got wrong type", "type", gomock.Any())
226224
mapper := MachinePoolToAzureManagedControlPlaneMapFunc(context.Background(), fakeClient, infrav1exp.GroupVersion.WithKind("AzureManagedControlPlane"), log)
227225

228226
// default pool should trigger
@@ -264,8 +262,6 @@ func TestMachinePoolToAzureManagedControlPlaneMapFuncFailure(t *testing.T) {
264262
fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithRuntimeObjects(initObjects...).Build()
265263

266264
log := mock_log.NewMockLogger(gomock.NewController(t))
267-
log.EXPECT().WithValues("AzureManagedControlPlane", cpName, "Namespace", cluster.Namespace).Return(log)
268-
log.EXPECT().Info("expected a MachinePool, got wrong type", "type", gomock.Any())
269265
log.EXPECT().Error(gomock.Any(), "failed to fetch default pool reference")
270266
log.EXPECT().Error(gomock.Any(), "failed to fetch default pool reference") // twice because we are testing two calls
271267

0 commit comments

Comments
 (0)