From 0c152845cad71be5fa5bbbf33b38e8ff61e4e651 Mon Sep 17 00:00:00 2001 From: David Peterson Date: Sun, 6 Mar 2016 19:16:34 -0300 Subject: [PATCH] Added a cast to "(*schema.Provider)" in the standard TestProvider function --- website/source/docs/plugins/provider.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/plugins/provider.html.md b/website/source/docs/plugins/provider.html.md index 57b7ccfaa..558770f2d 100644 --- a/website/source/docs/plugins/provider.html.md +++ b/website/source/docs/plugins/provider.html.md @@ -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) } }