diff --git a/backend/local/backend_refresh_test.go b/backend/local/backend_refresh_test.go index 0afe3d221..40e8e906e 100644 --- a/backend/local/backend_refresh_test.go +++ b/backend/local/backend_refresh_test.go @@ -189,9 +189,8 @@ func TestLocal_refreshValidate(t *testing.T) { } <-run.Done() - // what are we validating? - if !p.ValidateProviderConfigCalled { - t.Fatal("validate should be called") + if !p.PrepareProviderConfigCalled { + t.Fatal("Prepare provider config should be called") } checkState(t, b.StateOutPath, ` diff --git a/command/apply_test.go b/command/apply_test.go index 2e35c749f..6501874d0 100644 --- a/command/apply_test.go +++ b/command/apply_test.go @@ -797,8 +797,8 @@ func TestApply_planNoModuleFiles(t *testing.T) { planPath, } apply.Run(args) - if p.ValidateProviderConfigCalled { - t.Fatal("Validate should not be called with a plan") + if p.PrepareProviderConfigCalled { + t.Fatal("Prepare provider config should not be called with a plan") } }