diff --git a/src/internal/m365/controller_test.go b/src/internal/m365/controller_test.go index 21e8bbe99..f6074067d 100644 --- a/src/internal/m365/controller_test.go +++ b/src/internal/m365/controller_test.go @@ -260,7 +260,7 @@ func (suite *ControllerUnitSuite) TestPopulateOwnerIDAndNamesFrom_nilCheck() { ctx, flush := tester.NewContext(t) defer flush() - ctrl := &Controller{ownerLookup: nil} + ctrl := &Controller{resourceHandler: nil} _, err := ctrl.PopulateProtectedResourceIDAndName(ctx, "", nil) require.ErrorIs(t, err, ErrNoResourceLookup, clues.ToCore(err))