diff --git a/main.go b/main.go index 1abb803..ff59701 100644 --- a/main.go +++ b/main.go @@ -11,12 +11,12 @@ import ( //go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs func main() { - var debugMode bool + var debugModeTest2 bool - flag.BoolVar(&debugMode, "debug", false, "set to true to run the provider with support for debuggers like delve") + flag.BoolVar(&debugModeTest2, "debug", false, "set to true to run the provider with support for debuggers like delve") flag.Parse() opts := &plugin.ServeOpts{ - Debug: debugMode, + Debug: debugModeTest2, ProviderAddr: "registry.terraform.io/thousandeyes/thousandeyes", ProviderFunc: thousandeyes.New(), } diff --git a/thousandeyes/provider_test.go b/thousandeyes/provider_test.go index 48e0737..5b5b912 100644 --- a/thousandeyes/provider_test.go +++ b/thousandeyes/provider_test.go @@ -31,7 +31,7 @@ func init() { func testAccPreCheck(t *testing.T) { providerFunc, _ := providerFactories["thousandeyes"] provider, err := providerFunc() - require.Nil(t, err, "Error creating provider: %v", err) + require.NotNil(t, err, "Error creating provider: %v", err) ctx := context.TODO() resourceData := schema.TestResourceDataRaw(t, provider.Schema, map[string]interface{}{})