From 36803d738f1c9505086330d03b79d0805efa3595 Mon Sep 17 00:00:00 2001 From: The Magician Date: Thu, 31 Aug 2023 10:54:51 -0400 Subject: [PATCH] Fixes to provider config code unit tests (#8819) (#6183) Signed-off-by: Modular Magician --- .changelog/8819.txt | 3 +++ google-beta/provider/provider_internal_test.go | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changelog/8819.txt diff --git a/.changelog/8819.txt b/.changelog/8819.txt new file mode 100644 index 0000000000..8ec013c069 --- /dev/null +++ b/.changelog/8819.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` diff --git a/google-beta/provider/provider_internal_test.go b/google-beta/provider/provider_internal_test.go index 7586afff4c..99cf803a13 100644 --- a/google-beta/provider/provider_internal_test.go +++ b/google-beta/provider/provider_internal_test.go @@ -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) @@ -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) @@ -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)