From b846c5f653ec27741d223e5ecf60a9cf5a90f49f Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Fri, 19 Oct 2018 15:29:14 +0200 Subject: [PATCH] Make the test compile again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure if these checks still make sense, but without this change the test don’t compile for the related packages. --- backend/local/backend_refresh_test.go | 5 ++--- command/apply_test.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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") } }