Skip to content

Commit

Permalink
Remove unexpected logs in helpers_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Jun 23, 2021
1 parent 9374108 commit e4553db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions exp/controllers/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ func TestMachinePoolToAzureManagedControlPlaneMapFuncSuccess(t *testing.T) {
fakeClient := fake.NewClientBuilder().WithScheme(scheme).WithRuntimeObjects(initObjects...).Build()

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

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

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

Expand Down

0 comments on commit e4553db

Please sign in to comment.