Skip to content

Commit

Permalink
Merge pull request petoju#72 from terraform-providers/t-configure-pro…
Browse files Browse the repository at this point in the history
…vider-in-acctest

tests: Configure provider before running test
  • Loading branch information
radeksimko authored Feb 25, 2019
2 parents 7a01640 + cc03d21 commit d5b9627
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mysql/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ func testAccPreCheck(t *testing.T) {
t.Fatal("MYSQL_ENDPOINT, MYSQL_USERNAME and optionally MYSQL_PASSWORD must be set for acceptance tests")
}
}

err := testAccProvider.Configure(terraform.NewResourceConfig(nil))
if err != nil {
t.Fatal(err)
}
}

0 comments on commit d5b9627

Please sign in to comment.