diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-04-25 14:51:49 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2022-04-25 14:53:28 +0300 |
commit | 6600c754fbb1c3f96cff1c576473935f295ab5cb (patch) | |
tree | 5ecced2d245dbeb0d6b130f81b09c211fad0c846 /internal/redirects/redirects_test.go | |
parent | 950512e00946a5d7df2d82cd6e2a4fe131c90659 (diff) |
Replace os.Setenv with testing.SetEnv
Diffstat (limited to 'internal/redirects/redirects_test.go')
-rw-r--r-- | internal/redirects/redirects_test.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/internal/redirects/redirects_test.go b/internal/redirects/redirects_test.go index c0af60a7..66c5d733 100644 --- a/internal/redirects/redirects_test.go +++ b/internal/redirects/redirects_test.go @@ -16,13 +16,8 @@ import ( "gitlab.com/gitlab-org/gitlab-pages/internal/testhelpers" ) -// enablePlaceholders enables redirect placeholders in tests -func enablePlaceholders(t testing.TB) { - testhelpers.StubFeatureFlagValue(t, feature.RedirectsPlaceholders.EnvVariable, true) -} - func TestRedirectsRewrite(t *testing.T) { - enablePlaceholders(t) + t.Setenv(feature.RedirectsPlaceholders.EnvVariable, "true") tests := []struct { name string |