diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-07-06 10:05:17 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-07-07 07:50:27 +0300 |
commit | bf214c40cdea0f390e885298d7cf74056c68c6f2 (patch) | |
tree | d43a4be74eb9f28a1e530737248d3392f6a6c9f6 /client | |
parent | e34689502c46f6693006e259ed94e96ec3fa09b4 (diff) |
global: Rewrite callers of `testhelper.ModifyEnvironment()`
Rewrite callers of `testhelper.ModifyEnviroment()`, which is about to be
removed in favor of either `t.Setenv()` or `testhelper.Unsetenv()`.
Diffstat (limited to 'client')
-rw-r--r-- | client/dial_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/dial_test.go b/client/dial_test.go index f958fc13c..f488a3ede 100644 --- a/client/dial_test.go +++ b/client/dial_test.go @@ -128,8 +128,9 @@ func TestDial(t *testing.T) { } if tt.envSSLCertFile != "" { - testhelper.ModifyEnvironment(t, gitalyx509.SSLCertFile, tt.envSSLCertFile) + t.Setenv(gitalyx509.SSLCertFile, tt.envSSLCertFile) } + ctx := testhelper.Context(t) conn, err := Dial(tt.rawAddress, tt.dialOpts) @@ -216,8 +217,9 @@ func TestDialSidechannel(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if tt.envSSLCertFile != "" { - testhelper.ModifyEnvironment(t, gitalyx509.SSLCertFile, tt.envSSLCertFile) + t.Setenv(gitalyx509.SSLCertFile, tt.envSSLCertFile) } + ctx := testhelper.Context(t) conn, err := DialSidechannel(ctx, tt.rawAddress, registry, tt.dialOpts) |