Merge pull request #19127 from hashicorp/b-prepare-provider

Make the test compile again
This commit is contained in:
Sander van Harmelen 2018-10-19 19:05:18 +02:00 committed by GitHub
commit 83168ea25f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -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, `

View File

@ -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")
}
}