diff --git a/internal/terraform/rootmodule/root_module_manager_test.go b/internal/terraform/rootmodule/root_module_manager_test.go index 031c46faf..8dedd6f5d 100644 --- a/internal/terraform/rootmodule/root_module_manager_test.go +++ b/internal/terraform/rootmodule/root_module_manager_test.go @@ -463,7 +463,7 @@ func testRootModuleManager(t *testing.T) *rootModuleManager { rmm.syncLoading = true rmm.logger = testLogger() - rmm.newRootModule = func(ctx context.Context, dir string) (*rootModule, error) { + rmm.rmi.newRootModule = func(ctx context.Context, dir string) (*rootModule, error) { // TODO(RS): Should be just 1, unsure why it requires 2 repeatability := 2 rm := NewRootModuleMock(&RootModuleMock{