Skip to content

Commit

Permalink
fix: test provider config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev committed Oct 26, 2021
1 parent cfd2a3a commit dd483ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/terraform/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func InitTestAwsProvider(providerLibrary *terraform.ProviderLibrary, version str
func InitTestGithubProvider(providerLibrary *terraform.ProviderLibrary, version string) (*github.GithubTerraformProvider, error) {
progress := &output.MockProgress{}
progress.On("Inc").Maybe().Return()
provider, err := github.NewGithubTerraformProvider(version, progress, "")
provider, err := github.NewGithubTerraformProvider(version, progress, os.TempDir())
if err != nil {
return nil, err
}
Expand All @@ -37,7 +37,7 @@ func InitTestGithubProvider(providerLibrary *terraform.ProviderLibrary, version
func InitTestGoogleProvider(providerLibrary *terraform.ProviderLibrary, version string) (*google.GCPTerraformProvider, error) {
progress := &output.MockProgress{}
progress.On("Inc").Maybe().Return()
provider, err := google.NewGCPTerraformProvider(version, progress, "")
provider, err := google.NewGCPTerraformProvider(version, progress, os.TempDir())
if err != nil {
return nil, err
}
Expand All @@ -49,7 +49,7 @@ func InitTestGoogleProvider(providerLibrary *terraform.ProviderLibrary, version
func InitTestAzureProvider(providerLibrary *terraform.ProviderLibrary, version string) (*azurerm.AzureTerraformProvider, error) {
progress := &output.MockProgress{}
progress.On("Inc").Maybe().Return()
provider, err := azurerm.NewAzureTerraformProvider(version, progress, "")
provider, err := azurerm.NewAzureTerraformProvider(version, progress, os.TempDir())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit dd483ff

Please sign in to comment.