Added a cast to "(*schema.Provider)" in the standard TestProvider function

This commit is contained in:
David Peterson 2016-03-06 19:16:34 -03:00
parent 3eb0a95f53
commit 0c152845ca
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ an error if it is invalid. An example test is shown below:
```
func TestProvider(t *testing.T) {
if err := Provider().InternalValidate(); err != nil {
if err := Provider().(*schema.Provider).InternalValidate(); err != nil {
t.Fatalf("err: %s", err)
}
}