Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/feature/feature_test.go')
-rw-r--r--internal/feature/feature_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/feature/feature_test.go b/internal/feature/feature_test.go
index 88de8419..fec4e2a2 100644
--- a/internal/feature/feature_test.go
+++ b/internal/feature/feature_test.go
@@ -4,8 +4,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
-
- "gitlab.com/gitlab-org/gitlab-pages/internal/testhelpers"
)
func TestEnabled(t *testing.T) {
@@ -41,7 +39,7 @@ func TestEnabled(t *testing.T) {
EnvVariable: "testFeatureFlag",
defaultEnabled: tt.defaultEnabled,
}
- testhelpers.SetEnvironmentVariable(t, feature.EnvVariable, tt.envVal)
+ t.Setenv(feature.EnvVariable, tt.envVal)
require.Equal(t, tt.expected, feature.Enabled())
})
}