Skip to content

Commit

Permalink
Fixes to provider config code unit tests (#8819) (#6183)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Aug 31, 2023
1 parent a38aa69 commit 36803d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/8819.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
8 changes: 4 additions & 4 deletions google-beta/provider/provider_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ func TestProvider_ProviderConfigure_requestTimeout(t *testing.T) {

// Arrange
ctx := context.Background()
unsetTestProviderConfigEnvs(t)
acctest.UnsetTestProviderConfigEnvs(t)
p := provider.Provider()
d := tpgresource.SetupTestResourceDataFromConfigMap(t, p.Schema, tc.ConfigValues)

Expand Down Expand Up @@ -1504,8 +1504,8 @@ func TestProvider_ProviderConfigure_requestReason(t *testing.T) {

// Arrange
ctx := context.Background()
unsetTestProviderConfigEnvs(t)
setupTestEnvs(t, tc.EnvVariables)
acctest.UnsetTestProviderConfigEnvs(t)
acctest.SetupTestEnvs(t, tc.EnvVariables)
p := provider.Provider()
d := tpgresource.SetupTestResourceDataFromConfigMap(t, p.Schema, tc.ConfigValues)

Expand Down Expand Up @@ -1637,7 +1637,7 @@ func TestProvider_ProviderConfigure_batching(t *testing.T) {

// Arrange
ctx := context.Background()
unsetTestProviderConfigEnvs(t)
acctest.UnsetTestProviderConfigEnvs(t)
p := provider.Provider()
d := tpgresource.SetupTestResourceDataFromConfigMap(t, p.Schema, tc.ConfigValues)

Expand Down

0 comments on commit 36803d7

Please sign in to comment.