You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the likely explanation for the panic you are seeing is because you are importing github.com/hashicorp/terraform-plugin-testing/helper/resource and in the sdkprovider (i.e., github.com/brightbox/terraform-provider-brightbox/brightbox) you are using github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource for example in resource_brightbox_server.go.
You should be able to migrate your acceptance testing dependencies in terraform-provider-brightbox from SDKv2 to the Plugin Testing module by following these steps.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
terraform-plugin-testing version
Relevant provider source code
Expected Behavior
Provider test runs
Actual Behavior
$ go test
/tmp/go-build1374472121/b001/provider.test flag redefined: sweep
panic: /tmp/go-build1374472121/b001/provider.test flag redefined: sweep
goroutine 1 [running]:
flag.(*FlagSet).Var(0xc000124120, {0x1146318, 0xc0002af8b0}, {0xfbc5a0, 0x5}, {0xfe58de, 0x29})
/snap/go/current/src/flag/flag.go:982 +0x2f9
flag.(*FlagSet).StringVar(...)
/snap/go/current/src/flag/flag.go:847
flag.(*FlagSet).String(0x8?, {0xfbc5a0, 0x5}, {0x0, 0x0}, {0xfe58de, 0x29})
/snap/go/current/src/flag/flag.go:860 +0xac
flag.String(...)
/snap/go/current/src/flag/flag.go:867
github.com/hashicorp/terraform-plugin-testing/helper/resource.init()
/home/neil/Go/pkg/mod/github.com/hashicorp/[email protected]/helper/resource/testing.go:55 +0x45
exit status 2
FAIL github.com/brightbox/terraform-provider-brightbox/internal/provider 0.010s
Steps to Reproduce
go test
The text was updated successfully, but these errors were encountered: