Skip to content

Commit f376d68

Browse files
author
sfang97
committed
Reference testenvvar resource correctly
1 parent 810b02c commit f376d68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gitlab/provider_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package gitlab
22

33
import (
4-
"os"
5-
"testing"
6-
4+
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
75
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
86
"github.com/hashicorp/terraform-plugin-sdk/terraform"
7+
"os"
8+
"testing"
99
)
1010

1111
var testAccProviders map[string]terraform.ResourceProvider
1212
var testAccProvider *schema.Provider
1313

1414
func init() {
15-
if os.Getenv("TF_ACC") != "" {
15+
if os.Getenv(resource.TestEnvVar) != "" {
1616
testAccProvider = Provider().(*schema.Provider)
1717
if err := testAccProvider.Configure(&terraform.ResourceConfig{}); err != nil {
1818
panic(err)

0 commit comments

Comments
 (0)