From ad7af7670bfb42232f47dbd983e9deedbd01f53b Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Mon, 17 Feb 2020 16:10:49 +0000 Subject: [PATCH] opt in to new binary test driver This commit enables the new binary test driver introduced in SDK v1.7.0 for all acceptance tests in this provider. No test results should change. Please see https://github.com/hashicorp/terraform-plugin-sdk/pull/262 for more details about this test driver. --- random/provider_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/random/provider_test.go b/random/provider_test.go index 875988f9..86f871fb 100644 --- a/random/provider_test.go +++ b/random/provider_test.go @@ -3,6 +3,8 @@ package random import ( "testing" + "github.com/hashicorp/terraform-plugin-sdk/acctest" + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/terraform" ) @@ -29,3 +31,8 @@ func TestProvider_impl(t *testing.T) { func testAccPreCheck(t *testing.T) { } + +func TestMain(m *testing.M) { + acctest.UseBinaryDriver("random", Provider) + resource.TestMain(m) +}