diff --git a/dynamic/internal/shim/run/loader_test.go b/dynamic/internal/shim/run/loader_test.go index 5219c0e19..7c1ec59f3 100644 --- a/dynamic/internal/shim/run/loader_test.go +++ b/dynamic/internal/shim/run/loader_test.go @@ -16,7 +16,6 @@ package run import ( "context" - "os" "testing" "github.com/hashicorp/terraform-plugin-go/tfprotov6" @@ -37,8 +36,7 @@ func TestLoadProvider(t *testing.T) { t.Run("registry", func(t *testing.T) { // Do not cache during the test. - err := os.Setenv(envPluginCache, t.TempDir()) - require.NoError(t, err) + t.Setenv(envPluginCache, t.TempDir()) Integration(t) ctx := context.Background()