Skip to content

Commit

Permalink
opt in to new binary test driver
Browse files Browse the repository at this point in the history
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 hashicorp/terraform-plugin-sdk#262 for more details about this test driver.
  • Loading branch information
kmoe committed Feb 17, 2020
1 parent f7005ee commit cb431b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions random/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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)
}

0 comments on commit cb431b5

Please sign in to comment.